Repository: yt-dlp
Issue: For removal (KnownDRM): [Viki] Cookies support
Labels: site-enhancement

### Checklist

- [X] I'm reporting a broken site
- [X] I've verified that I'm running yt-dlp version **2022.02.04**. ([update instructions](https://github.com/yt-dlp/yt-dlp#update))
- [X] I've checked that all provided URLs are alive and playable in a browser
- [X] I've checked that all URLs and arguments with special characters are [properly quoted or escaped](https://github.com/ytdl-org/youtube-dl#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)
- [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

United States

### Description

Typing the username and password on the command line directly works as intended on Viki, however, the three other options I've tried to pass session information/credentials to yt-dlp seem to be broken.

Cookies were exported using this Chrome extension:
https://chrome.google.com/webstore/detail/get-cookiestxt/bgaddhkoddajcdgocldbbfleckgcbcid

### Verbose log

```shell
C:\Users\bijuu>yt-dlp https://www.viki.com/videos/1192572v-semantic-error-episode-3 --cookies v.txt --no-config --write-subs --sub-lang en --embed-sub --write-info-json -vU
[debug] Command-line config: ['https://www.viki.com/videos/1192572v-semantic-error-episode-3', '--cookies', 'v.txt', '--no-config', '--write-subs', '--sub-lang', 'en', '--embed-sub', '--write-info-json', '-vU']
[debug] Encodings: locale cp1252, fs utf-8, out utf-8, err utf-8, pref cp1252
[debug] yt-dlp version 2022.02.04 [c1653e9] (win_exe)
[debug] Python version 3.8.10 (CPython 64bit) - Windows-10-10.0.22000-SP0
[debug] exe versions: ffmpeg 2022-01-06-git-2b541b8c1d-full_build-www.gyan.dev (setts), ffprobe 2022-01-06-git-2b541b8c1d-full_build-www.gyan.dev
[debug] Optional libraries: Cryptodome, mutagen, sqlite, websockets
[debug] Proxy map: {}
Latest version: 2022.02.04, Current version: 2022.02.04
yt-dlp is up to date (2022.02.04)
[debug] [viki] Extracting URL: https://www.viki.com/videos/1192572v-semantic-error-episode-3
[viki] 1192572v: Downloading video JSON
ERROR: [viki] 1192572v: Sorry, this content is only available to Viki Pass Plus subscribers. Use --cookies, --username and --password, or --netrc to provide account credentials
  File "yt_dlp\extractor\common.py", line 612, in extract
  File "yt_dlp\extractor\viki.py", line 240, in _real_extract
  File "yt_dlp\extractor\viki.py", line 99, in _check_errors
  File "yt_dlp\extractor\common.py", line 1102, in raise_login_required


C:\Users\bijuu>yt-dlp https://www.viki.com/videos/1192572v-semantic-error-episode-3 --cookies-from-browser chrome --no-config --write-subs --sub-lang en --embed-sub --write-info-json -vU
[debug] Command-line config: ['https://www.viki.com/videos/1192572v-semantic-error-episode-3', '--cookies-from-browser', 'chrome', '--no-config', '--write-subs', '--sub-lang', 'en', '--embed-sub', '--write-info-json', '-vU']
[Cookies] Extracting cookies from chrome
[debug] Extracting cookies from: "C:\Users\bijuu\AppData\Local\Google\Chrome\User Data\Default\Network\Cookies"
[Cookies] Extracted 6202 cookies from chrome
[debug] cookie version breakdown: {'v10': 6202, 'other': 0, 'unencrypted': 0}
[debug] Encodings: locale cp1252, fs utf-8, out utf-8, err utf-8, pref cp1252
[debug] yt-dlp version 2022.02.04 [c1653e9] (win_exe)
[debug] Python version 3.8.10 (CPython 64bit) - Windows-10-10.0.22000-SP0
[debug] exe versions: ffmpeg 2022-01-06-git-2b541b8c1d-full_build-www.gyan.dev (setts), ffprobe 2022-01-06-git-2b541b8c1d-full_build-www.gyan.dev
[debug] Optional libraries: Cryptodome, mutagen, sqlite, websockets
[debug] Proxy map: {}
Latest version: 2022.02.04, Current version: 2022.02.04
yt-dlp is up to date (2022.02.04)
[debug] [viki] Extracting URL: https://www.viki.com/videos/1192572v-semantic-error-episode-3
[viki] 1192572v: Downloading video JSON
ERROR: [viki] 1192572v: Sorry, this content is only available to Viki Pass Plus subscribers. Use --cookies, --username and --password, or --netrc to provide account credentials
  File "yt_dlp\extractor\common.py", line 612, in extract
  File "yt_dlp\extractor\viki.py", line 240, in _real_extract
  File "yt_dlp\extractor\viki.py", line 99, in _check_errors
  File "yt_dlp\extractor\common.py", line 1102, in raise_login_required


C:\Users\bijuu>yt-dlp https://www.viki.com/videos/1192572v-semantic-error-episode-3 --username ############# --password ############### --no-config --write-subs --sub-lang en --embed-sub --write-info-json -v
[debug] Command-line config: ['https://www.viki.com/videos/1192572v-semantic-error-episode-3', '--username', 'PRIVATE', '--password', 'PRIVATE', '--no-config', '--write-subs', '--sub-lang', 'en', '--embed-sub', '--write-info-json', '-v']
[debug] Encodings: locale cp1252, fs utf-8, out utf-8, err utf-8, pref cp1252
[debug] yt-dlp version 2022.02.04 [c1653e9] (win_exe)
[debug] Python version 3.8.10 (CPython 64bit) - Windows-10-10.0.22000-SP0
[debug] exe versions: ffmpeg 2022-01-06-git-2b541b8c1d-full_build-www.gyan.dev (setts), ffprobe 2022-01-06-git-2b541b8c1d-full_build-www.gyan.dev
[debug] Optional libraries: Cryptodome, mutagen, sqlite, websockets
[debug] Proxy map: {}
[viki] Logging in
[debug] [viki] Extracting URL: https://www.viki.com/videos/1192572v-semantic-error-episode-3
[viki] 1192572v: Downloading video JSON
[viki] 1192572v: Downloading video streams JSON
[viki] 1192572v: Downloading initial MPD manifest
[viki] 1192572v: Downloading MPD manifest
[debug] Formats sorted by: hasvid, ie_pref, lang, quality, res, fps, hdr:12(7), vcodec:vp9.2(10), acodec, filesize, fs_approx, tbr, vbr, abr, asr, proto, vext, aext, hasaud, source, id
[debug] Downloading subtitles: en
[debug] Default format spec: bestvideo*+bestaudio/best
[info] 1192572v: Downloading 1 format(s): 0+9
[info] Writing video subtitles to: Semantic Error - Episode 3 [1192572v].en.vtt
[debug] Invoking downloader on "https://api.viki.io/v4/videos/1192572v/auth_subtitles/en.vtt?app=100005a&token=ex13ARLNZIFTZKL5TFB5FAXM6NB57S2G_2u0058182397uti00m2o60c100005_djA0&stream_id=108376057"
[download] Destination: Semantic Error - Episode 3 [1192572v].en.vtt
[download] 100% of 18.46KiB in 00:01
[info] Writing video metadata as JSON to: Semantic Error - Episode 3 [1192572v].info.json
[debug] Invoking downloader on "https://m-content6-viki.s.llnwi.net/1192572v/dash/1192572v_dash_high_1080p_546c87_2202230235_track1_dashinit.mp4"
[download] Destination: Semantic Error - Episode 3 [1192572v].f0.mp4
[download] 100% of 241.82MiB in 00:39
[debug] Invoking downloader on "https://m-content6-viki.s.llnwi.net/1192572v/dash/1192572v_dash_high_720p_f52c1f_2202230235_track2_dashinit.mp4"
[download] Destination: Semantic Error - Episode 3 [1192572v].f9.m4a
[download] 100% of 24.68MiB in 00:07
[Merger] Merging formats into "Semantic Error - Episode 3 [1192572v].mp4"
[debug] ffmpeg command line: ffmpeg -y -loglevel "repeat+info" -i "file:Semantic Error - Episode 3 [1192572v].f0.mp4" -i "file:Semantic Error - Episode 3 [1192572v].f9.m4a" -c copy -map "0:v:0" -map "1:a:0" -movflags "+faststart" "file:Semantic Error - Episode 3 [1192572v].temp.mp4"
Deleting original file Semantic Error - Episode 3 [1192572v].f0.mp4 (pass -k to keep)
Deleting original file Semantic Error - Episode 3 [1192572v].f9.m4a (pass -k to keep)
[EmbedSubtitle] Embedding subtitles in "Semantic Error - Episode 3 [1192572v].mp4"
[debug] ffmpeg command line: ffmpeg -y -loglevel "repeat+info" -i "file:Semantic Error - Episode 3 [1192572v].mp4" -i "file:Semantic Error - Episode 3 [1192572v].en.vtt" -map 0 -dn -ignore_unknown -c copy "-c:s" mov_text -map "-0:s" -map "1:0" "-metadata:s:s:0" "language=eng" -movflags "+faststart" "file:Semantic Error - Episode 3 [1192572v].temp.mp4"
```