Repository: yt-dlp
Issue: youku 1080p
Labels: site-bug,triage

### DO NOT REMOVE OR SKIP THE ISSUE TEMPLATE

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

### Checklist

- [X] I'm reporting that yt-dlp is broken on a **supported** site
- [X] I've verified that I have **updated yt-dlp to nightly or master** ([update instructions](https://github.com/yt-dlp/yt-dlp#update-channels))
- [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 [known issues](https://github.com/yt-dlp/yt-dlp/issues/3766) and 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)
- [X] 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

china

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

-F show 3 formats
ID EXT RESOLUTION │   FILESIZE PROTO │ VCODEC  ACODEC
──────────────────────────────────────────────────────
0  mp4 640x360    │  183.52MiB m3u8  │ unknown unknown
h3 mp4 960x540    │  302.11MiB m3u8  │ unknown unknown
2  mp4 1280x720   │  508.92MiB m3u8  │ unknown unknown
──────────────────────────────────────────────────────

i want to download the best resolution with format id is 2
but, yt-dlp -f 2 downloaded as -f 0, is 640x360


### 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] If using API, add `'verbose': True` to `YoutubeDL` params instead
- [X] Copy the WHOLE output (starting with `[debug] Command-line config`) and insert it below

### Complete Verbose Output

```shell
$ yt-dlp -Uv --cookies-from-browser chromium -f 2 https://v.youku.com/v_show/id_XNTk0ODM3MzcxNg\=\=.html

[debug] Command-line config: ['-Uv', '--cookies-from-browser', 'chromium', '-f', '2', 'https://v.youku.com/v_show/id_XNTk0ODM3MzcxNg==.html']
[debug] Encodings: locale UTF-8, fs utf-8, pref UTF-8, out utf-8, error utf-8, screen utf-8
[debug] yt-dlp version stable@2024.03.10 from yt-dlp/yt-dlp [615a84447] (pip)
[debug] Python 3.12.2 (CPython x86_64 64bit) - macOS-12.7.1-x86_64-i386-64bit (OpenSSL 3.2.1 30 Jan 2024)
[debug] exe versions: ffmpeg 6.1.1 (setts), ffprobe 6.1.1
[debug] Optional libraries: Cryptodome-3.20.0, brotli-1.1.0, certifi-2024.02.02, mutagen-1.47.0, requests-2.31.0, sqlite3-3.45.2, urllib3-2.2.1, websockets-12.0
[debug] Proxy map: {'http': 'http://127.0.0.1:1235', 'https': 'http://127.0.0.1:1235', 'socks': 'http://127.0.0.1:1234'}
Extracting cookies from chromium
[debug] Extracting cookies from: "/Users/lirui/Library/Application Support/Chromium/Default/Cookies"
[debug] using find-generic-password to obtain password from OSX keychain
Extracted 642 cookies from chromium
[debug] cookie version breakdown: {'v10': 632, 'other': 0, 'unencrypted': 10}
[debug] Request Handlers: urllib, requests, websockets
[debug] Loaded 1803 extractors
[debug] Fetching release info: https://api.github.com/repos/yt-dlp/yt-dlp/releases/latest
Latest version: stable@2024.03.10 from yt-dlp/yt-dlp
yt-dlp is up to date (stable@2024.03.10 from yt-dlp/yt-dlp)
[youku] Extracting URL: https://v.youku.com/v_show/id_XNTk0ODM3MzcxNg==.html
[youku] XNTk0ODM3MzcxNg: Retrieving cna info
[youku] XNTk0ODM3MzcxNg: Downloading JSON metadata
[debug] Formats sorted by: hasvid, ie_pref, lang, quality, res, fps, hdr:12(7), vcodec:vp9.2(10), channels, acodec, size, br, asr, proto, vext, aext, hasaud, source, id
[info] XNTk0ODM3MzcxNg: Downloading 1 format(s): 2
[debug] Invoking hlsnative downloader on "http://pl-ali.youku.com/playlist/m3u8?vid=XNTk0ODM3MzcxNg%3D%3D&type=mp4hd2v3&ups_client_netip=de5ebaaf&utid=0V17HkAAfCoCAdrNN2kIEQur&ccode=0524&psid=bd94cc8279021940ae208f4af9316b4441346&ups_userid=141290058&ups_ytid=321933329&duration=6026&expire=18000&drm_type=1&drm_device=10&drm_default=1&dyt=0&ups_ts=1710706661&onOff=0&encr=0&ups_key=bdda1f2ccd35749ed1c88cf3f13301b6&ckt=3&m_onoff=0&pn=&drm_type_value=default"
[hlsnative] Downloading m3u8 manifest
[hlsnative] Total fragments: 476
[download] Destination: 西湖梦寻 [XNTk0ODM3MzcxNg].mp4
[download] 100% of  203.36MiB in 00:00:30 at 6.74MiB/s
[debug] ffprobe command line: ffprobe -hide_banner -show_format -show_streams -print_format json 'file:西湖梦寻 [XNTk0ODM3MzcxNg].mp4'
[debug] ffmpeg command line: ffprobe -show_streams 'file:西湖梦寻 [XNTk0ODM3MzcxNg].mp4'
[FixupM3u8] Fixing MPEG-TS in MP4 container of "西湖梦寻 [XNTk0ODM3MzcxNg].mp4"
[debug] ffmpeg command line: ffmpeg -y -loglevel repeat+info -i 'file:西湖梦寻 [XNTk0ODM3MzcxNg].mp4' -map 0 -dn -ignore_unknown -c copy -f mp4 -bsf:a aac_adtstoasc -movflags +faststart 'file:西湖梦寻 [XNTk0ODM3MzcxNg].temp.mp4'
```