Repository: yt-dlp
Issue: [ok.ru] Videos are corrupted, wrong mtime
Labels: site-bug,triage

### DO NOT REMOVE OR SKIP THE ISSUE TEMPLATE

- [X] I understand that I will be **blocked** if I remove or skip any mandatory\* field

### Checklist

- [X] I'm reporting a broken site
- [X] I've verified that I'm running yt-dlp version **2023.01.06** ([update instructions](https://github.com/yt-dlp/yt-dlp#update)) or later (specify commit)
- [X] I've checked that all provided URLs are playable in a browser with the same IP and same login details
- [X] I've checked that all URLs and arguments with special characters are [properly quoted or escaped](https://github.com/yt-dlp/yt-dlp/wiki/FAQ#video-url-contains-an-ampersand--and-im-getting-some-strange-output-1-2839-or-v-is-not-recognized-as-an-internal-or-external-command)
- [X] I've searched the [bugtracker](https://github.com/yt-dlp/yt-dlp/issues?q=) for similar issues **including closed ones**. DO NOT post duplicates
- [X] I've read the [guidelines for opening an issue](https://github.com/yt-dlp/yt-dlp/blob/master/CONTRIBUTING.md#opening-an-issue)
- [ ] I've read about [sharing account credentials](https://github.com/yt-dlp/yt-dlp/blob/master/CONTRIBUTING.md#are-you-willing-to-share-account-details-if-needed) and I'm willing to share it if required

### Region

EU

### Provide a description that is worded well enough to be understood

yt-dlp corrupts files while downloading.

Here is the URL https://ok.ru/video/1269740472936

yt-dlp's result:
Size: 206353706 bytes (196 MiB)
SHA1: c5150e072871df0f9e2934f50bab4aa47ac6fbab

The file is broken. A video player lags, freezes while playing.

The correct file (downloaded with DevTools):
Size: 206343640 bytes (196 MiB)
SHA1: f55c505035f70cc3d45f6c1f76bf7965229f2ea5


---

Two more examples:
https://ok.ru/video/1240962828904
https://ok.ru/video/1240964074088

---
This one was downloaded correctly.
https://ok.ru/video/4217990679137

Possibly, because it have no video quality chooser:
![image](https://user-images.githubusercontent.com/16310547/218335513-d954905c-e750-4b99-9730-d448d983407a.png)

While the other have it:
![image](https://user-images.githubusercontent.com/16310547/218335539-eab91043-4f65-4cc9-af21-d80ddb1caa67.png)

---

Also all video files have wrong mtime (2014.01.01).

While filename `date` key is correct (2019.05.19):
```
[ok.ru] A L E X—2019.05.19—1269740472936—Encounter a young wild white Arctic Fox in Greenland.mp4
```




### Provide verbose output that clearly demonstrates the problem

- [X] Run **your** yt-dlp command with **-vU** flag added (`yt-dlp -vU <your command line>`)
- [X] Copy the WHOLE output (starting with `[debug] Command-line config`) and insert it below

### Complete Verbose Output

```shell
$ yt https://ok.ru/video/1269740472936 -vU
[debug] Command-line config: ['--write-thumbnail', '--write-description', '-o', '[%(webpage_url_domain)s] %(uploader,creator,playlist_title)s—%(upload_date>%Y.%m.%d)s—%(id)s—%(full
title|)s.%(ext)s', '-o', 'pl_thumbnail:[%(webpage_url_domain)s][thumbnail] %(uploader,creator,playlist_title)s—%(upload_date>%Y.%m.%d)s—%(playlist_id,id)s—%(fulltitle|)s.%(ext)s',
'https://ok.ru/video/1269740472936', '-vU']
[debug] Encodings: locale cp65001, fs utf-8, pref cp65001, out utf-8, error utf-8, screen utf-8
[debug] yt-dlp version 2023.01.06 [6becd2508]
[debug] Lazy loading extractors is disabled
[debug] Python 3.9.13 (CPython AMD64 64bit) - Windows-10 (OpenSSL 1.1.1n  15 Mar 2022)
[debug] exe versions: ffmpeg 5.0.1-full_build-www.gyan.dev (setts), ffprobe 5.0.1-full_build-www.gyan.dev
[debug] Optional libraries: Cryptodome-3.12.0, brotli-1.0.9, certifi-2022.06.15, mutagen-1.45.1, sqlite3-2.6.0, websockets-10.1
[debug] Proxy map: {}
[debug] Loaded 1760 extractors
[debug] Fetching release info: https://api.github.com/repos/yt-dlp/yt-dlp/releases/latest
Latest version: 2023.01.06, Current version: 2023.01.06
yt-dlp is up to date (2023.01.06)
[Odnoklassniki] Extracting URL: https://ok.ru/video/1269740472936
[Odnoklassniki] 1269740472936: Downloading desktop webpage
[Odnoklassniki] 1269740472936: Downloading m3u8 information
[debug] Formats sorted by: hasvid, ie_pref, lang, quality, res, fps, hdr:12(7), vcodec:vp9.2(10), channels, acodec, filesize, fs_approx, tbr, vbr, abr, asr, proto, vext, aext, hasa
ud, source, id
[debug] Default format spec: bestvideo*+bestaudio/best
[info] 1269740472936: Downloading 1 format(s): mpd-7
[info] There's no video description to write
[info] Downloading video thumbnail 0 ...
[info] Writing video thumbnail 0 to: [ok.ru] A L E X—2019.05.19—1269740472936—Encounter a young wild white Arctic Fox in Greenland.jpg
[debug] Invoking http downloader on "https://vd288.mycdn.me/..."
[debug] File locking is not supported. Proceeding without locking
[download] Destination: [ok.ru] A L E X—2019.05.19—1269740472936—Encounter a young wild white Arctic Fox in Greenland.mp4
```