Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[crunchyroll] Download audio language in Japanese and/or French #7741

Closed
8 of 9 tasks
xamyp opened this issue Jul 31, 2023 · 23 comments
Closed
8 of 9 tasks

[crunchyroll] Download audio language in Japanese and/or French #7741

xamyp opened this issue Jul 31, 2023 · 23 comments
Labels
site-enhancement Feature request for some website wontfix This will not be worked on

Comments

@xamyp
Copy link

xamyp commented Jul 31, 2023

DO NOT REMOVE OR SKIP THE ISSUE TEMPLATE

  • I understand that I will be blocked if I intentionally remove or skip any mandatory* field

Checklist

Please make sure the question is worded well enough to be understood

Hello, I'm trying to download an anime in the original language (vo: Japanese) and also in French. But I want to have the subtitles in French.

I can't make a filter on the language, I tried the following arguments:

--format-sort langage:jaJP,frFR
--format-sort lang:jaJP,frFR
--format-sort lang:jaJP/frFR

But nothing works. Can I have some help pls ?

yt-dlp.exe -vU --write-subs --sub-lang fr-FR --sub-format srt --embed-subs --remux-video mkv --audio-quality 0 --user-agent "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/115.0" --cookies-from-browser firefox --paths "Z:\Vidéos\Downloaded\Crunchyroll" --format-sort langage:jaJP https://www.crunchyroll.com/fr/series/GY243NN0R/the-misfit-of-demon-king-academy

Provide verbose output that clearly demonstrates the problem

  • Run your yt-dlp command with -vU flag added (yt-dlp -vU <your command line>)
  • If using API, add 'verbose': True to YoutubeDL params instead
  • Copy the WHOLE output (starting with [debug] Command-line config) and insert it below

Complete Verbose Output

[debug] Command-line config: ['-vU', '--write-subs', '--sub-lang', 'fr-FR', '--sub-format', 'srt', '--embed-subs', '--remux-video', 'mkv', '--audio-quality', '0', '--user-agent', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/115.0', '--cookies-from-browser', 'firefox', '--paths', 'Z:\\Vidéos\\Downloaded\\Crunchyroll', '--format-sort', 'lang:jaJP', 'https://www.crunchyroll.com/fr/series/GY243NN0R/the-misfit-of-demon-king-academy']
Extracting cookies from firefox
[debug] Extracting cookies from: "C:\Users\xamyp\AppData\Roaming\Mozilla\Firefox\Profiles\jpfe9s0x.default-release\cookies.sqlite"
Extracted 20 cookies from firefox
[debug] Encodings: locale cp1252, fs utf-8, pref cp1252, out utf-8, error utf-8, screen utf-8
[debug] yt-dlp version nightly@2023.07.31.170857 [6d6081dda] (win_exe)
[debug] Python 3.8.10 (CPython AMD64 64bit) - Windows-10-10.0.19045-SP0 (OpenSSL 1.1.1k  25 Mar 2021)
[debug] exe versions: ffmpeg N-111661-g567e78b283-20230731 (setts), ffprobe N-111661-g567e78b283-20230731
[debug] Optional libraries: Cryptodome-3.18.0, brotli-1.0.9, certifi-2023.07.22, mutagen-1.46.0, sqlite3-2.6.0, websockets-11.0.3
[debug] Proxy map: {}
[debug] Loaded 1859 extractors
[debug] Fetching release info: https://api.github.com/repos/yt-dlp/yt-dlp-nightly-builds/releases/latest
Available version: nightly@2023.07.31.170857, Current version: nightly@2023.07.31.170857
Current Build Hash: 6617e47fd54e9f4df903518813a7142aa470a53cfb5bb5dafde9c073b30beb47
yt-dlp is up to date (nightly@2023.07.31.170857)
[crunchyroll:playlist] Extracting URL: https://www.crunchyroll.com/fr/series/GY243NN0R/the-misfit-of-demon-king-academy
[debug] [crunchyroll:playlist] Using cxApiParam=noaihdevm_6iyg0a8l0q
[crunchyroll:playlist] Authenticating with grant_type=etp_rt_cookie
[crunchyroll:playlist] GY243NN0R: Downloading series JSON (cms)
[download] Downloading playlist: The Misfit of Demon King Academy
[crunchyroll:playlist] Retrieving signed policy
[crunchyroll:playlist] GY243NN0R: Downloading seasons JSON (signed cms)
[crunchyroll:playlist] GR49C7EZ8: Downloading episode list JSON (signed cms)
[crunchyroll:playlist] G68D9GG56: Downloading episode list JSON (signed cms)
[crunchyroll:playlist] GRJQC1580: Downloading episode list JSON (signed cms)
[crunchyroll:playlist] GY19CPW29: Downloading episode list JSON (signed cms)
[crunchyroll:playlist] G649C7EGD: Downloading episode list JSON (signed cms)
[crunchyroll:playlist] Playlist The Misfit of Demon King Academy: Downloading 44 items of 44
[download] Downloading item 1 of 44
[crunchyroll] Extracting URL: https://www.crunchyroll.com/fr/watch/G0DUN808P
[crunchyroll] G0DUN808P: Downloading object info JSON (cms)
[crunchyroll] G0DUN808P: Downloading stream info JSON (signed cms)
[crunchyroll] To get all formats of a hardsub language, use "--extractor-args crunchyrollbeta:hardsub=<language_code or all>". See https://github.com/yt-dlp/yt-dlp#crunchyrollbeta-crunchyroll for more info
[crunchyroll] G0DUN808P: Downloading adaptive_hls HLS manifest
[crunchyroll] G0DUN808P: Downloading chapter info
[info] G0DUN808P: Downloading subtitles: fr-FR
WARNING: No subtitle format found matching "srt" for language fr-FR, using ass
[debug] Sort order given by user: lang:jaJP
[debug] Formats sorted by: hasvid, ie_pref, lang:jaJP(jajp), quality, res, fps, hdr:12(7), vcodec:vp9.2(10), channels, acodec, size, br, asr, proto, vext, aext, hasaud, source, id
[debug] Default format spec: bestvideo*+bestaudio/best
[info] G0DUN808P: Downloading 1 format(s): adaptive_hls-8104
[info] Writing video subtitles to: Z:\Vidéos\Downloaded\Crunchyroll\The Misfit of Demon King Academy (VF) Episode 1 – L'inadéquat de l’Académie du Roi-démon [G0DUN808P].fr-FR.ass
[debug] Invoking http downloader on "https://v.vrv.co/evs3/6f45ff956d565191f01b0691dd716f57/assets/84ea80047dc8d641543ac44f420d9058_329951.txt?Policy=eyJTdGF0ZW1lbnQiOlt7IlJlc291cmNlIjoiaHR0cCo6Ly92LnZydi5jby9ldnMzLzZmNDVmZjk1NmQ1NjUxOTFmMDFiMDY5MWRkNzE2ZjU3L2Fzc2V0cy84NGVhODAwNDdkYzhkNjQxNTQzYWM0NGY0MjBkOTA1OF8zMjk5NTEudHh0IiwiQ29uZGl0aW9uIjp7IkRhdGVMZXNzVGhhbiI6eyJBV1M6RXBvY2hUaW1lIjoxNjkxMDE0ODA1fX19XX0_&Signature=EzCaVgwSvIpGvEy5lsrpAuIZM~tVn6e9~qgBO72G6wnmB8yPNsWQUbMF-MCb9DuP42jm9ATi0~8ZGgiE5GJaAp1EZd9w-4D72tcV9r6fWq8Y-uKyxY3mPlNLk7h20jc0h6pdSXXoyaRi976Gw~~fSf-GurSHBq5~XP1T~FjTp5ST4hsGXhwsdPCF5oyjEAH5fT-9cYr7JH8~p1~WF-YE43UMpqDXWbWzHfZoBDHjdmjf9zmr3aIB2VR5NDFxXXKKBpuJ9k9BaIsyra5KxKi2gOzPyYDHOu5-RWkRaQvK~mFMp-eavn0B9ubHfff~kE62fI95vktg4B644Z98w6z1Fg__&Key-Pair-Id=APKAJMWSQ5S7ZB3MF5VA"
[debug] File locking is not supported. Proceeding without locking
[download] Destination: Z:\Vidéos\Downloaded\Crunchyroll\The Misfit of Demon King Academy (VF) Episode 1 – L'inadéquat de l’Académie du Roi-démon [G0DUN808P].fr-FR.ass
[download] 100% of    5.58KiB in 00:00:00 at 18.67KiB/s
[debug] Invoking hlsnative downloader on "https://pl.crunchyroll.com/evs3/6f45ff956d565191f01b0691dd716f57/assets/84ea80047dc8d641543ac44f420d9058_4936401.mp4/index-v1-a1.m3u8?res=1920x1080&Expires=1691014805&Policy=eyJTdGF0ZW1lbnQiOlt7IlJlc291cmNlIjoiaHR0cHM6Ly9wbC5jcnVuY2h5cm9sbC5jb20vZXZzMy82ZjQ1ZmY5NTZkNTY1MTkxZjAxYjA2OTFkZDcxNmY1Ny9hc3NldHMvODRlYTgwMDQ3ZGM4ZDY0MTU0M2FjNDRmNDIwZDkwNThfNDkzNjQwMS5tcDQvaW5kZXgtdjEtYTEubTN1OD9yZXM9MTkyMHgxMDgwIiwiQ29uZGl0aW9uIjp7IkRhdGVMZXNzVGhhbiI6eyJBV1M6RXBvY2hUaW1lIjoxNjkxMDE0ODA1fX19XX0_&Signature=agHvw4nrW3joEMIgWzzFeavtJuBeBai97TCmr48dkNMCGNwWosk5A8aNWdcioI-aGLnlyg0lQ0xyfRMd3z4AWhAI4RVk3d5Cbf6bgRd0~C4BTxu37d3s3iuxVRy3b0sJtBSPs1jzcrohaPpWQOzxWSCP0Q7Tgqh7d3E~SF~-7C~l7rFzdt1Uqpfzt0pOu-Ws~mRt5AVpVWzLksJrocW9xX91f-~trnP-2gNGsaL-R9T1CkjZOJGagLBP90wlwrbaiX5dIfikP2WeYFQv5BONHS3RssrIb0IV1lY~8QwC4cDcKAnJ1bBzjOjtiqy3LO1Ysl~M~whyISz1NE9aZ3KaRQ__&Key-Pair-Id=APKAJMWSQ5S7ZB3MF5VA"
[hlsnative] Downloading m3u8 manifest
[hlsnative] Total fragments: 357
[download] Destination: Z:\Vidéos\Downloaded\Crunchyroll\The Misfit of Demon King Academy (VF) Episode 1 – L'inadéquat de l’Académie du Roi-démon [G0DUN808P].mp4
[download] 100% of    1.38GiB in 00:02:29 at 9.47MiB/s
[VideoRemuxer] Remuxing video from mp4 to mkv; Destination: Z:\Vidéos\Downloaded\Crunchyroll\The Misfit of Demon King Academy (VF) Episode 1 – L'inadéquat de l’Académie du Roi-démon [G0DUN808P].mkv
[debug] ffmpeg command line: ffmpeg -y -loglevel "repeat+info" -i "file:Z:\Vidéos\Downloaded\Crunchyroll\The Misfit of Demon King Academy (VF) Episode 1 – L'inadéquat de l’Académie du Roi-démon [G0DUN808P].mp4" -map 0 -dn -ignore_unknown -c copy -movflags "+faststart" "file:Z:\Vidéos\Downloaded\Crunchyroll\The Misfit of Demon King Academy (VF) Episode 1 – L'inadéquat de l’Académie du Roi-démon [G0DUN808P].mkv"
Deleting original file Z:\Vidéos\Downloaded\Crunchyroll\The Misfit of Demon King Academy (VF) Episode 1 – L'inadéquat de l’Académie du Roi-démon [G0DUN808P].mp4 (pass -k to keep)
[EmbedSubtitle] Embedding subtitles in "Z:\Vidéos\Downloaded\Crunchyroll\The Misfit of Demon King Academy (VF) Episode 1 – L'inadéquat de l’Académie du Roi-démon [G0DUN808P].mkv"
[debug] ffmpeg command line: ffmpeg -y -loglevel "repeat+info" -i "file:Z:\Vidéos\Downloaded\Crunchyroll\The Misfit of Demon King Academy (VF) Episode 1 – L'inadéquat de l’Académie du Roi-démon [G0DUN808P].mkv" -i "file:Z:\Vidéos\Downloaded\Crunchyroll\The Misfit of Demon King Academy (VF) Episode 1 – L'inadéquat de l’Académie du Roi-démon [G0DUN808P].fr-FR.ass" -map 0 -dn -ignore_unknown -c copy -map "-0:s" -map "1:0" "-metadata:s:s:0" "language=fra" -movflags "+faststart" "file:Z:\Vidéos\Downloaded\Crunchyroll\The Misfit of Demon King Academy (VF) Episode 1 – L'inadéquat de l’Académie du Roi-démon [G0DUN808P].temp.mkv"
[download] Downloading item 2 of 44
[crunchyroll] Extracting URL: https://www.crunchyroll.com/fr/watch/GEVUZEGE9
[crunchyroll] GEVUZEGE9: Downloading object info JSON (cms)
[crunchyroll] GEVUZEGE9: Downloading stream info JSON (signed cms)
[crunchyroll] GEVUZEGE9: Downloading adaptive_hls HLS manifest
[crunchyroll] GEVUZEGE9: Downloading chapter info
[info] GEVUZEGE9: Downloading subtitles: fr-FR
WARNING: No subtitle format found matching "srt" for language fr-FR, using ass
[debug] Sort order given by user: lang:jaJP
[debug] Formats sorted by: hasvid, ie_pref, lang:jaJP(jajp), quality, res, fps, hdr:12(7), vcodec:vp9.2(10), channels, acodec, size, br, asr, proto, vext, aext, hasaud, source, id
[debug] Default format spec: bestvideo*+bestaudio/best
[info] GEVUZEGE9: Downloading 1 format(s): adaptive_hls-8110
[info] Writing video subtitles to: Z:\Vidéos\Downloaded\Crunchyroll\The Misfit of Demon King Academy (VF) Episode 2 – La sorcière de la destruction [GEVUZEGE9].fr-FR.ass
[debug] Invoking http downloader on "https://v.vrv.co/evs3/6f45ff956d565191f01b0691dd716f57/assets/263403da77f3439619d593265018cf53_329953.txt?Policy=eyJTdGF0ZW1lbnQiOlt7IlJlc291cmNlIjoiaHR0cCo6Ly92LnZydi5jby9ldnMzLzZmNDVmZjk1NmQ1NjUxOTFmMDFiMDY5MWRkNzE2ZjU3L2Fzc2V0cy8yNjM0MDNkYTc3ZjM0Mzk2MTlkNTkzMjY1MDE4Y2Y1M18zMjk5NTMudHh0IiwiQ29uZGl0aW9uIjp7IkRhdGVMZXNzVGhhbiI6eyJBV1M6RXBvY2hUaW1lIjoxNjkxMDE1MDQ0fX19XX0_&Signature=YuZEbAcoGrRpK0BSL6cWOO8-QLZBHLmhvlMvWnrXGNk2K4Z1~E64rzBqFmc92g6J1GAlvbjmJWK02C6Hwuc~s6PEsrb7og-Zef14ZMg87b0eCPpReM3OwjmuJgNIXNalt65nz62okbMwQ5CE34dc-JKdmGiComrkZSw35138Hp3ATr4dDsu86S2-MfEeJhsL-FNccg6v11zkcHmOgyCIXPlOa3tJ6XaRCxll2NSQpjXFoLfZnxxosr8qPd41vLBW4rk5ZBOSEdzJWEDd0lYT7~UUfF6JzJhlxCiUrFPAuXKOiox64-ZuTm6Q9mOjeX7P2nViZ1r2k8Yh-McImRHH4w__&Key-Pair-Id=APKAJMWSQ5S7ZB3MF5VA"
[download] Destination: Z:\Vidéos\Downloaded\Crunchyroll\The Misfit of Demon King Academy (VF) Episode 2 – La sorcière de la destruction [GEVUZEGE9].fr-FR.ass
[download] 100% of    6.00KiB in 00:00:00 at 19.47KiB/s
[debug] Invoking hlsnative downloader on "https://pl.crunchyroll.com/evs3/6f45ff956d565191f01b0691dd716f57/assets/263403da77f3439619d593265018cf53_4936409.mp4/index-v1-a1.m3u8?res=1920x1080&Expires=1691015045&Policy=eyJTdGF0ZW1lbnQiOlt7IlJlc291cmNlIjoiaHR0cHM6Ly9wbC5jcnVuY2h5cm9sbC5jb20vZXZzMy82ZjQ1ZmY5NTZkNTY1MTkxZjAxYjA2OTFkZDcxNmY1Ny9hc3NldHMvMjYzNDAzZGE3N2YzNDM5NjE5ZDU5MzI2NTAxOGNmNTNfNDkzNjQwOS5tcDQvaW5kZXgtdjEtYTEubTN1OD9yZXM9MTkyMHgxMDgwIiwiQ29uZGl0aW9uIjp7IkRhdGVMZXNzVGhhbiI6eyJBV1M6RXBvY2hUaW1lIjoxNjkxMDE1MDQ1fX19XX0_&Signature=gWXj2oohKP-8T8WUOC8XeWNXzJp5u7W2vXpR2Gkr8TLWVXEJayK4dTZ9YhZ5zr9Y4I3DPc~BTW9KT~Y4Nr2tnQpYzhvDiD0vSvgaKHVpsvpgmVXfxs3AIt1OTynOTFEbZmcRnYZtG6PD0VmMyaL4bnAYlTTaLYq8mljhvLlXLXiyhnQFDjK6Pw~AaU-DsTHuOWu~qN15lETD9Va~5XpDC~tJ4KnZL61Ip~s3S93Ni8TZpdsz5yajCXYYxrRjPlONPhkL7zzP~D-NlDYHZBq0OTnEtfcOzGf4XyxfANOgti~3sG94qQx9AeNEukRjShQEko4O3o6aSHzqqwdGy3JQtg__&Key-Pair-Id=APKAJMWSQ5S7ZB3MF5VA"
[hlsnative] Downloading m3u8 manifest
[hlsnative] Total fragments: 354
[download] Destination: Z:\Vidéos\Downloaded\Crunchyroll\The Misfit of Demon King Academy (VF) Episode 2 – La sorcière de la destruction [GEVUZEGE9].mp4
[download] 100% of    1.37GiB in 00:03:18 at 7.10MiB/s
[VideoRemuxer] Remuxing video from mp4 to mkv; Destination: Z:\Vidéos\Downloaded\Crunchyroll\The Misfit of Demon King Academy (VF) Episode 2 – La sorcière de la destruction [GEVUZEGE9].mkv
[debug] ffmpeg command line: ffmpeg -y -loglevel "repeat+info" -i "file:Z:\Vidéos\Downloaded\Crunchyroll\The Misfit of Demon King Academy (VF) Episode 2 – La sorcière de la destruction [GEVUZEGE9].mp4" -map 0 -dn -ignore_unknown -c copy -movflags "+faststart" "file:Z:\Vidéos\Downloaded\Crunchyroll\The Misfit of Demon King Academy (VF) Episode 2 – La sorcière de la destruction [GEVUZEGE9].mkv"

ERROR: Interrupted by user
@xamyp xamyp added the question Question label Jul 31, 2023
@xamyp xamyp changed the title [crunchyroll] Download audio language in Japanese and French [crunchyroll] Download audio language in Japanese and/or French Aug 1, 2023
@pukkandan
Copy link
Member

-S only sorts in a hard-coded orders - it does not act as a filter. Use --format. If you want further help, how output of yt-dlp -vUF URL so I can see what formats we are dealing with

@xamyp
Copy link
Author

xamyp commented Aug 1, 2023

-S only sorts in a hard-coded orders - it does not act as a filter. Use --format. If you want further help, how output of yt-dlp -vUF URL so I can see what formats we are dealing with

Hello, this is the output with the -F parameter added.

yt-dlp.exe -vUF --write-subs --sub-lang fr-FR --sub-format srt --embed-subs --remux-video mkv --audio-quality 0 --user-agent "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/115.0" --cookies-from-browser firefox --paths "Z:\Vidéos\Downloaded\Crunchyroll" https://www.crunchyroll.com/fr/watch/GYME9M3P6/the-misfit-of-demon-king-academy
[debug] Command-line config: ['-vUF', '--write-subs', '--sub-lang', 'fr-FR', '--sub-format', 'srt', '--embed-subs', '--remux-video', 'mkv', '--audio-quality', '0', '--user-agent', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/115.0', '--cookies-from-browser', 'firefox', '--paths', 'Z:\\Vidéos\\Downloaded\\Crunchyroll', 'https://www.crunchyroll.com/fr/watch/GYME9M3P6/the-misfit-of-demon-king-academy']
Extracting cookies from firefox
[debug] Extracting cookies from: "C:\Users\xamyp\AppData\Roaming\Mozilla\Firefox\Profiles\jpfe9s0x.default-release\cookies.sqlite"
Extracted 21 cookies from firefox
[debug] Encodings: locale cp1252, fs utf-8, pref cp1252, out utf-8, error utf-8, screen utf-8
[debug] yt-dlp version nightly@2023.08.01.072422 [30b29f371] (win_exe)
[debug] Python 3.8.10 (CPython AMD64 64bit) - Windows-10-10.0.19045-SP0 (OpenSSL 1.1.1k  25 Mar 2021)
[debug] exe versions: ffmpeg N-111661-g567e78b283-20230731 (setts), ffprobe N-111661-g567e78b283-20230731
[debug] Optional libraries: Cryptodome-3.18.0, brotli-1.0.9, certifi-2023.07.22, mutagen-1.46.0, sqlite3-2.6.0, websockets-11.0.3
[debug] Proxy map: {}
[debug] Loaded 1859 extractors
[debug] Fetching release info: https://api.github.com/repos/yt-dlp/yt-dlp-nightly-builds/releases/latest
Available version: nightly@2023.08.01.072422, Current version: nightly@2023.08.01.072422
Current Build Hash: 7037f076be747ed2dbfecafb2edc3ab52c3bcf528ec853117794495d4708ffda
yt-dlp is up to date (nightly@2023.08.01.072422)
[crunchyroll] Extracting URL: https://www.crunchyroll.com/fr/watch/GYME9M3P6/the-misfit-of-demon-king-academy
[debug] [crunchyroll] Using cxApiParam=noaihdevm_6iyg0a8l0q
[crunchyroll] Authenticating with grant_type=etp_rt_cookie
[crunchyroll] GYME9M3P6: Downloading object info JSON (cms)
[crunchyroll] Retrieving signed policy
[crunchyroll] GYME9M3P6: Downloading stream info JSON (signed cms)
[crunchyroll] To get all formats of a hardsub language, use "--extractor-args crunchyrollbeta:hardsub=<language_code or all>". See https://github.com/yt-dlp/yt-dlp#crunchyrollbeta-crunchyroll for more info
[crunchyroll] GYME9M3P6: Downloading adaptive_hls HLS manifest
[crunchyroll] GYME9M3P6: Downloading chapter info
[info] GYME9M3P6: Downloading subtitles: fr-FR
WARNING: No subtitle format found matching "srt" for language fr-FR, using ass
[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] Available formats for GYME9M3P6:
ID                               EXT RESOLUTION FPS │   FILESIZE   TBR PROTO │ VCODEC      ACODEC    MORE INFO
──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
adaptive_hls-hardsub-de-DE-meta  mp4 multiple       │                  m3u8F │ unknown     unknown   [ja-JP] Quality selection URL
adaptive_hls-hardsub-en-US-meta  mp4 multiple       │                  m3u8F │ unknown     unknown   [ja-JP] Quality selection URL
adaptive_hls-hardsub-es-419-meta mp4 multiple       │                  m3u8F │ unknown     unknown   [ja-JP] Quality selection URL
adaptive_hls-hardsub-fr-FR-meta  mp4 multiple       │                  m3u8F │ unknown     unknown   [ja-JP] Quality selection URL
adaptive_hls-hardsub-pt-BR-meta  mp4 multiple       │                  m3u8F │ unknown     unknown   [ja-JP] Quality selection URL
adaptive_hls-562                 mp4 428x240     24 │ ~ 97.42MiB  562k m3u8  │ avc1.42c015 mp4a.40.2 [ja-JP]
adaptive_hls-1093                mp4 640x360     24 │ ~189.59MiB 1094k m3u8  │ avc1.4d401e mp4a.40.2 [ja-JP]
adaptive_hls-2092                mp4 848x480     24 │ ~362.63MiB 2092k m3u8  │ avc1.4d401f mp4a.40.2 [ja-JP]
adaptive_hls-4110                mp4 1280x720    24 │ ~712.52MiB 4110k m3u8  │ avc1.640028 mp4a.40.2 [ja-JP]
adaptive_hls-8103                mp4 1920x1080   24 │ ~  1.37GiB 8103k m3u8  │ avc1.640028 mp4a.40.2 [ja-JP]

@xamyp xamyp closed this as completed Aug 1, 2023
@xamyp xamyp reopened this Aug 1, 2023
@pukkandan
Copy link
Member

pukkandan commented Aug 1, 2023

Only japanese audio seem available. It's possibly a site bug, but a dev with access to cruchyroll will need to check

@pukkandan pukkandan added site-bug Issue with a specific website triage Untriaged issue and removed question Question labels Aug 1, 2023
@xamyp
Copy link
Author

xamyp commented Aug 1, 2023

Yes it works when I select an episode, it downloads in the original language (here in Japanese) but when I want to download all the episodes (like a playlist) and I put the url I only have French and no VO (Japanese).
Look at the url is different but I only have French :

yt-dlp.exe -vUF --write-subs --sub-lang fr-FR --sub-format srt --embed-subs --remux-video mkv --audio-quality 0 --user-agent "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/115.0" --cookies-from-browser firefox --paths "Z:\Vidéos\Downloaded\Crunchyroll" https://www.crunchyroll.com/fr/series/GY243NN0R/the-misfit-of-demon-king-academy
[debug] Command-line config: ['-vUF', '--write-subs', '--sub-lang', 'fr-FR', '--sub-format', 'srt', '--embed-subs', '--remux-video', 'mkv', '--audio-quality', '0', '--user-agent', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/115.0', '--cookies-from-browser', 'firefox', '--paths', 'Z:\\Vidéos\\Downloaded\\Crunchyroll', 'https://www.crunchyroll.com/fr/series/GY243NN0R/the-misfit-of-demon-king-academy']
Extracting cookies from firefox
[debug] Extracting cookies from: "C:\Users\xamyp\AppData\Roaming\Mozilla\Firefox\Profiles\jpfe9s0x.default-release\cookies.sqlite"
Extracted 21 cookies from firefox
[debug] Encodings: locale cp1252, fs utf-8, pref cp1252, out utf-8, error utf-8, screen utf-8
[debug] yt-dlp version nightly@2023.08.01.072422 [30b29f371] (win_exe)
[debug] Python 3.8.10 (CPython AMD64 64bit) - Windows-10-10.0.19045-SP0 (OpenSSL 1.1.1k  25 Mar 2021)
[debug] exe versions: ffmpeg N-111661-g567e78b283-20230731 (setts), ffprobe N-111661-g567e78b283-20230731
[debug] Optional libraries: Cryptodome-3.18.0, brotli-1.0.9, certifi-2023.07.22, mutagen-1.46.0, sqlite3-2.6.0, websockets-11.0.3
[debug] Proxy map: {}
[debug] Loaded 1859 extractors
[debug] Fetching release info: https://api.github.com/repos/yt-dlp/yt-dlp-nightly-builds/releases/latest
Available version: nightly@2023.08.01.072422, Current version: nightly@2023.08.01.072422
Current Build Hash: 7037f076be747ed2dbfecafb2edc3ab52c3bcf528ec853117794495d4708ffda
yt-dlp is up to date (nightly@2023.08.01.072422)
[crunchyroll:playlist] Extracting URL: https://www.crunchyroll.com/fr/series/GY243NN0R/the-misfit-of-demon-king-academy
[debug] [crunchyroll:playlist] Using cxApiParam=noaihdevm_6iyg0a8l0q
[crunchyroll:playlist] Authenticating with grant_type=etp_rt_cookie
[crunchyroll:playlist] GY243NN0R: Downloading series JSON (cms)
[download] Downloading playlist: The Misfit of Demon King Academy
[crunchyroll:playlist] Retrieving signed policy
[crunchyroll:playlist] GY243NN0R: Downloading seasons JSON (signed cms)
[crunchyroll:playlist] GR49C7EZ8: Downloading episode list JSON (signed cms)
[crunchyroll:playlist] G68D9GG56: Downloading episode list JSON (signed cms)
[crunchyroll:playlist] GRJQC1580: Downloading episode list JSON (signed cms)
[crunchyroll:playlist] GY19CPW29: Downloading episode list JSON (signed cms)
[crunchyroll:playlist] G649C7EGD: Downloading episode list JSON (signed cms)
[crunchyroll:playlist] Playlist The Misfit of Demon King Academy: Downloading 44 items of 44
[download] Downloading item 1 of 44
[crunchyroll] Extracting URL: https://www.crunchyroll.com/fr/watch/G0DUN808P
[crunchyroll] G0DUN808P: Downloading object info JSON (cms)
[crunchyroll] G0DUN808P: Downloading stream info JSON (signed cms)
[crunchyroll] To get all formats of a hardsub language, use "--extractor-args crunchyrollbeta:hardsub=<language_code or all>". See https://github.com/yt-dlp/yt-dlp#crunchyrollbeta-crunchyroll for more info
[crunchyroll] G0DUN808P: Downloading adaptive_hls HLS manifest
[crunchyroll] G0DUN808P: Downloading chapter info
[info] G0DUN808P: Downloading subtitles: fr-FR
WARNING: No subtitle format found matching "srt" for language fr-FR, using ass
[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] Available formats for G0DUN808P:
ID                              EXT RESOLUTION FPS │   FILESIZE   TBR PROTO │ VCODEC      ACODEC    MORE INFO
─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
adaptive_hls-hardsub-fr-FR-meta mp4 multiple       │                  m3u8F │ unknown     unknown   [fr-FR] Quality selection URL
adaptive_hls-562                mp4 428x240     24 │ ~ 98.11MiB  562k m3u8  │ avc1.42c015 mp4a.40.2 [fr-FR]
adaptive_hls-1092               mp4 640x360     24 │ ~190.53MiB 1092k m3u8  │ avc1.4d401e mp4a.40.2 [fr-FR]
adaptive_hls-2088               mp4 848x480     24 │ ~364.33MiB 2089k m3u8  │ avc1.4d401f mp4a.40.2 [fr-FR]
adaptive_hls-4116               mp4 1280x720    24 │ ~718.08MiB 4117k m3u8  │ avc1.640028 mp4a.40.2 [fr-FR]
adaptive_hls-8104               mp4 1920x1080   24 │ ~  1.38GiB 8104k m3u8  │ avc1.640028 mp4a.40.2 [fr-FR]
[download] Downloading item 2 of 44
[crunchyroll] Extracting URL: https://www.crunchyroll.com/fr/watch/GEVUZEGE9
[crunchyroll] GEVUZEGE9: Downloading object info JSON (cms)
[crunchyroll] GEVUZEGE9: Downloading stream info JSON (signed cms)
[crunchyroll] GEVUZEGE9: Downloading adaptive_hls HLS manifest
[crunchyroll] GEVUZEGE9: Downloading chapter info
[info] GEVUZEGE9: Downloading subtitles: fr-FR
WARNING: No subtitle format found matching "srt" for language fr-FR, using ass
[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] Available formats for GEVUZEGE9:
ID                              EXT RESOLUTION FPS │   FILESIZE   TBR PROTO │ VCODEC      ACODEC    MORE INFO
─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
adaptive_hls-hardsub-fr-FR-meta mp4 multiple       │                  m3u8F │ unknown     unknown   [fr-FR] Quality selection URL
adaptive_hls-562                mp4 428x240     24 │ ~ 97.32MiB  563k m3u8  │ avc1.42c015 mp4a.40.2 [fr-FR]
adaptive_hls-1093               mp4 640x360     24 │ ~189.13MiB 1093k m3u8  │ avc1.4d401e mp4a.40.2 [fr-FR]
adaptive_hls-2090               mp4 848x480     24 │ ~361.57MiB 2090k m3u8  │ avc1.4d401f mp4a.40.2 [fr-FR]
adaptive_hls-4118               mp4 1280x720    24 │ ~712.56MiB 4119k m3u8  │ avc1.640028 mp4a.40.2 [fr-FR]
adaptive_hls-8110               mp4 1920x1080   24 │ ~  1.37GiB 8111k m3u8  │ avc1.640028 mp4a.40.2 [fr-FR]

@pukkandan pukkandan added question Question and removed site-bug Issue with a specific website triage Untriaged issue labels Aug 1, 2023
@xamyp
Copy link
Author

xamyp commented Aug 1, 2023

I think it would come from the URL, if I select an episode (contains "watch" in the url) the language is indeed Japanese but if I select a series (all episodes of an anime, the url contains "series") the language is French whereas I would like it to be vo or that I can filter between the two to have either Japanese or French or both. Any idea please?

@Fu2chN
Copy link

Fu2chN commented Aug 1, 2023

Hi, you're basically wanting this pull request.

#7009

@xamyp
Copy link
Author

xamyp commented Aug 1, 2023

Hi, you're basically wanting this pull request.

#7009

Hi, how to use it under windows in compiled version?

@RealDarkCraft
Copy link

I think I know what your problem is, actually crunchyroll uses a different video (url) between vf and vo, so when you use the playlist, yt-dlp downloads all the vf episodes first then it will download the vo episodes (and for the fr subtitles get them from the vo episode (not the vf episode)).

@RealDarkCraft
Copy link

and also it seems to me that the video can have a length more or less long between the vf and the vo so

@Fu2chN
Copy link

Fu2chN commented Aug 2, 2023

Yep 2000ms 3000ms generally. (Scene skipping / Advertiser Skipping) Why, I don't know :/

@xamyp
Copy link
Author

xamyp commented Aug 2, 2023

I think I know what your problem is, actually crunchyroll uses a different video (url) between vf and vo, so when you use the playlist, yt-dlp downloads all the vf episodes first then it will download the vo episodes (and for the fr subtitles get them from the vo episode (not the vf episode)).

Yes that's it but when I use the playlist I can't download the vo with the vostfr... So I don't know what to do except wait for the PR but it dates from the beginning of May...

@Grub4K
Copy link
Member

Grub4K commented Aug 2, 2023

I just didnt have had much time to look at it, especially since the PR has big implications. I assume there is some sort of easier way to aproach what its trying to do, but I havent had the time to take an in depth look at the api calls and responses yet.

Additionally crunchyroll has been going through a couple changes recently, so there should be some time before its api becomes stable again (not that its ever been lol)

Please continue being patient for now

@xamyp
Copy link
Author

xamyp commented Aug 2, 2023

I'll wait, thank you for the work already provided and if anyone has another idea how to do it I'm interested.

@Rafawell
Copy link

Rafawell commented Aug 5, 2023

For series, I use --match-filter "language=fr-FR," and it works well 🙃

@xamyp
Copy link
Author

xamyp commented Aug 5, 2023

For anime on crunchyrool it's not working

@Rafawell
Copy link

Rafawell commented Aug 6, 2023

I'm sorry it didn't work. I also forgot to mention that this "--match-filter" sometimes works with the URL of an episode. I use it only on the series URL, so the "match-filter" retrieves the playlist containing the required dubbing. Another fact I forgot to mention is that I'm using another version compiled by Grub4K, and it has been working perfectly for me so far. Here is the link to the page with some more instructions given by him, and there you will find the link for the pre-release.
#7632

I'm editing it now because I checked with yt-dlp from the main repository, updating it with "--update-to nightly" will work fine, just like the pre-release from Grub4K.

@xamyp
Copy link
Author

xamyp commented Aug 6, 2023

Yt-dlp was already up to date but look if I put my command with the match-filter here is the output :

yt-dlp.exe -vU --write-subs --sub-lang fr-FR --sub-format srt --embed-subs --no-overwrite --remux-video mkv --audio-quality 0 --user-agent "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/116.0" --cookies-from-browser firefox --paths "Z:\Vidéos\Downloaded" --format-sort lang:jaJP --match-filter "language=fr-FR," https://www.crunchyroll.com/fr/series/GRVN8MNQY/classroom-of-the-elite

[debug] Command-line config: ['-vU', '--write-subs', '--sub-lang', 'fr-FR', '--sub-format', 'srt', '--embed-subs', '--no-overwrite', '--remux-video', 'mkv', '--audio-quality', '0', '--user-agent', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/116.0', '--cookies-from-browser', 'firefox', '--paths', 'Z:\\Vidéos\\Downloaded', '--format-sort', 'lang:jaJP', '--match-filter', 'language=fr-FR,', 'https://www.crunchyroll.com/fr/series/GRVN8MNQY/classroom-of-the-elite']
Extracting cookies from firefox
[debug] Extracting cookies from: "C:\Users\xamyp\AppData\Roaming\Mozilla\Firefox\Profiles\jpfe9s0x.default-release\cookies.sqlite"
Extracted 61 cookies from firefox
[debug] Encodings: locale cp1252, fs utf-8, pref cp1252, out utf-8, error utf-8, screen utf-8
[debug] yt-dlp version nightly@2023.08.04.221808 [db7b054a6] (win_exe)
[debug] Python 3.8.10 (CPython AMD64 64bit) - Windows-10-10.0.19045-SP0 (OpenSSL 1.1.1k  25 Mar 2021)
[debug] exe versions: ffmpeg N-111661-g567e78b283-20230731 (setts), ffprobe N-111661-g567e78b283-20230731
[debug] Optional libraries: Cryptodome-3.18.0, brotli-1.0.9, certifi-2023.07.22, mutagen-1.46.0, sqlite3-2.6.0, websockets-11.0.3
[debug] Proxy map: {}
[debug] Loaded 1860 extractors
[debug] Fetching release info: https://api.github.com/repos/yt-dlp/yt-dlp-nightly-builds/releases/latest
Available version: nightly@2023.08.04.221808, Current version: nightly@2023.08.04.221808
Current Build Hash: c1578ba3139f74f3cf72bb5decc88c88deb52c51573047f32888f65547901a6a
yt-dlp is up to date (nightly@2023.08.04.221808)
[crunchyroll:playlist] Extracting URL: https://www.crunchyroll.com/fr/series/GRVN8MNQY/classroom-of-the-elite
[debug] [crunchyroll:playlist] Using cxApiParam=noaihdevm_6iyg0a8l0q
[crunchyroll:playlist] Authenticating with grant_type=etp_rt_cookie
[crunchyroll:playlist] GRVN8MNQY: Downloading series JSON (cms)
[download] Downloading playlist: Classroom of the Elite
[crunchyroll:playlist] Retrieving signed policy
[crunchyroll:playlist] GRVN8MNQY: Downloading seasons JSON (signed cms)
[crunchyroll:playlist] GYXJ14J56: Downloading episode list JSON (signed cms)
[crunchyroll:playlist] G6WEC3K57: Downloading episode list JSON (signed cms)
[crunchyroll:playlist] GR5VCD47Z: Downloading episode list JSON (signed cms)
[crunchyroll:playlist] GYDQCGWPZ: Downloading episode list JSON (signed cms)
[crunchyroll:playlist] GRQ4CZ9PZ: Downloading episode list JSON (signed cms)
[crunchyroll:playlist] G63VXWVNY: Downloading episode list JSON (signed cms)
[crunchyroll:playlist] GRE5CQGG1: Downloading episode list JSON (signed cms)
[crunchyroll:playlist] G609CX00E: Downloading episode list JSON (signed cms)
[crunchyroll:playlist] GRGGCVEE1: Downloading episode list JSON (signed cms)
[crunchyroll:playlist] GRMGC344X: Downloading episode list JSON (signed cms)
[crunchyroll:playlist] GRWEC3KK7: Downloading episode list JSON (signed cms)
[crunchyroll:playlist] GRK5CN47N: Downloading episode list JSON (signed cms)
[crunchyroll:playlist] Playlist Classroom of the Elite: Downloading 150 items of 150
[download] Classroom of the Elite (English Dub) Episode 1 – What is evil? Whatever springs from weakness. does not pass filter (language=fr-FR,), skipping ..
[download] Classroom of the Elite (English Dub) Episode 2 – It takes a great talent and skill to conceal one's talent and skill. does not pass filter (language=fr-FR,), skipping ..
[download] Classroom of the Elite (English Dub) Episode 3 – Man is an animal that makes bargains: no other animal does this - no dog exchanges bones with another. does not pass filter (language=fr-FR,), skipping ..
[download] Classroom of the Elite (English Dub) Episode 4 – We should not be upset that others hide the truth from us, when we hide it so often from ourselves. does not pass filter (language=fr-FR,), skipping ..
[download] Classroom of the Elite (English Dub) Episode 5 – Hell is other people does not pass filter (language=fr-FR,), skipping ..
[download] Classroom of the Elite (English Dub) Episode 6 – There are two kinds of lies; one concerns an accomplished fact, the other concerns a future duty. does not pass filter (language=fr-FR,), skipping ..

[download] Classroom of the Elite (English Dub) Episode 7 – Nothing is as dangerous as an ignorant friend; a wise enemy is to be preferred does not pass filter (language=fr-FR,), skipping ..
[download] Classroom of the Elite (English Dub) Episode 8 – Abandon all hope, ye who enter here. does not pass filter (language=fr-FR,), skipping ..
[download] Classroom of the Elite (English Dub) Episode 9 – Man is condemned to be free. does not pass filter (language=fr-FR,), skipping ..
[download] Classroom of the Elite (English Dub) Episode 10 – Every man has in himself the most dangerous traitor of all does not pass filter (language=fr-FR,), skipping ..
[download] Classroom of the Elite (English Dub) Episode 11 – What people commonly call fate is mostly their own stupidity. does not pass filter (language=fr-FR,), skipping ..
[download] Classroom of the Elite (English Dub) Episode 12 – Genius lives only one story above madness. does not pass filter (language=fr-FR,), skipping ..
[download] Classroom of the Elite (German Dub) Episode 1 – What is evil? Whatever springs from weakness. does not pass filter (language=fr-FR,), skipping ..
[download] Classroom of the Elite (German Dub) Episode 2 – It takes a great talent and skill to conceal one's talent and skill. does not pass filter (language=fr-FR,), skipping ..
[download] Classroom of the Elite (German Dub) Episode 3 – Man is an animal that makes bargains: no other animal does this - no dog exchanges bones with another. does not pass filter (language=fr-FR,), skipping ..
[download] Classroom of the Elite (German Dub) Episode 4 – We should not be upset that others hide the truth from us, when we hide it so often from ourselves. does not pass filter (language=fr-FR,), skipping ..
[download] Classroom of the Elite (German Dub) Episode 5 – Hell is other people does not pass filter (language=fr-FR,), skipping ..
[download] Classroom of the Elite (German Dub) Episode 6 – There are two kinds of lies; one concerns an accomplished fact, the other concerns a future duty. does not pass filter (language=fr-FR,), skipping ..
[download] Classroom of the Elite (German Dub) Episode 7 – Nothing is as dangerous as an ignorant friend; a wise enemy is to be preferred does not pass filter (language=fr-FR,), skipping ..
[download] Classroom of the Elite (German Dub) Episode 8 – Abandon all hope, ye who enter here. does not pass filter (language=fr-FR,), skipping ..
[download] Classroom of the Elite (German Dub) Episode 9 – Man is condemned to be free. does not pass filter (language=fr-FR,), skipping ..
[download] Classroom of the Elite (German Dub) Episode 10 – Every man has in himself the most dangerous traitor of all does not pass filter (language=fr-FR,), skipping ..
[download] Classroom of the Elite (German Dub) Episode 11 – What people commonly call fate is mostly their own stupidity. does not pass filter (language=fr-FR,), skipping ..
[download] Classroom of the Elite (German Dub) Episode 12 – Genius lives only one story above madness. does not pass filter (language=fr-FR,), skipping ..
[download] Classroom of the Elite (French Dub) Episode 1 – What is evil? Whatever springs from weakness. does not pass filter (language=fr-FR,), skipping ..
[download] Classroom of the Elite (French Dub) Episode 2 – It takes a great talent and skill to conceal one's talent and skill. does not pass filter (language=fr-FR,), skipping ..
[download] Classroom of the Elite (French Dub) Episode 3 – Man is an animal that makes bargains: no other animal does this - no dog exchanges bones with another. does not pass filter (language=fr-FR,), skipping ..
[download] Classroom of the Elite (French Dub) Episode 4 – We should not be upset that others hide the truth from us, when we hide it so often from ourselves. does not pass filter (language=fr-FR,), skipping ..
[download] Classroom of the Elite (French Dub) Episode 5 – Hell is other people does not pass filter (language=fr-FR,), skipping ..
[download] Classroom of the Elite (French Dub) Episode 6 – There are two kinds of lies; one concerns an accomplished fact, the other concerns a future duty. does not pass filter (language=fr-FR,), skipping ..
[download] Classroom of the Elite (French Dub) Episode 7 – Nothing is as dangerous as an ignorant friend; a wise enemy is to be preferred does not pass filter (language=fr-FR,), skipping ..
[download] Classroom of the Elite (French Dub) Episode 8 – Abandon all hope, ye who enter here. does not pass filter (language=fr-FR,), skipping ..
[download] Classroom of the Elite (French Dub) Episode 9 – Man is condemned to be free. does not pass filter (language=fr-FR,), skipping ..
[download] Classroom of the Elite (French Dub) Episode 10 – Every man has in himself the most dangerous traitor of all does not pass filter (language=fr-FR,), skipping ..
[download] Classroom of the Elite (French Dub) Episode 11 – What people commonly call fate is mostly their own stupidity. does not pass filter (language=fr-FR,), skipping ..
[download] Classroom of the Elite (French Dub) Episode 12 – Genius lives only one story above madness. does not pass filter (language=fr-FR,), skipping ..
[download] Classroom of the Elite (Spanish Dub) Episode 1 – What is evil? Whatever springs from weakness. does not pass filter (language=fr-FR,), skipping ..
[download] Classroom of the Elite (Spanish Dub) Episode 2 – It takes a great talent and skill to conceal one's talent and skill. does not pass filter (language=fr-FR,), skipping ..
[download] Classroom of the Elite (Spanish Dub) Episode 3 – Man is an animal that makes bargains: no other animal does this - no dog exchanges bones with another. does not pass filter (language=fr-FR,), skipping ..
[download] Classroom of the Elite (Spanish Dub) Episode 4 – We should not be upset that others hide the truth from us, when we hide it so often from ourselves. does not pass filter (language=fr-FR,), skipping ..
[download] Classroom of the Elite (Spanish Dub) Episode 5 – Hell is other people does not pass filter (language=fr-FR,), skipping ..
[download] Classroom of the Elite (Spanish Dub) Episode 6 – There are two kinds of lies; one concerns an accomplished fact, the other concerns a future duty. does not pass filter (language=fr-FR,), skipping ..

[download] Classroom of the Elite (Spanish Dub) Episode 7 – Nothing is as dangerous as an ignorant friend; a wise enemy is to be preferred does not pass filter (language=fr-FR,), skipping ..
[download] Classroom of the Elite (Spanish Dub) Episode 8 – Abandon all hope, ye who enter here. does not pass filter (language=fr-FR,), skipping ..
[download] Classroom of the Elite (Spanish Dub) Episode 9 – Man is condemned to be free. does not pass filter (language=fr-FR,), skipping ..
[download] Classroom of the Elite (Spanish Dub) Episode 10 – Every man has in himself the most dangerous traitor of all does not pass filter (language=fr-FR,), skipping ..
[download] Classroom of the Elite (Spanish Dub) Episode 11 – What people commonly call fate is mostly their own stupidity. does not pass filter (language=fr-FR,), skipping ..
[download] Classroom of the Elite (Spanish Dub) Episode 12 – Genius lives only one story above madness. does not pass filter (language=fr-FR,), skipping ..
[download] Classroom of the Elite (Portuguese Dub) Episode 1 – What is evil? Whatever springs from weakness. does not pass filter (language=fr-FR,), skipping ..
[download] Classroom of the Elite (Portuguese Dub) Episode 2 – It takes a great talent and skill to conceal one's talent and skill. does not pass filter (language=fr-FR,), skipping ..
[download] Classroom of the Elite (Portuguese Dub) Episode 3 – Man is an animal that makes bargains: no other animal does this - no dog exchanges bones with another. does not pass filter (language=fr-FR,), skipping ..
[download] Classroom of the Elite (Portuguese Dub) Episode 4 – We should not be upset that others hide the truth from us, when we hide it so often from ourselves. does not pass filter (language=fr-FR,), skipping ..
[download] Classroom of the Elite (Portuguese Dub) Episode 5 – Hell is other people does not pass filter (language=fr-FR,), skipping ..
[download] Classroom of the Elite (Portuguese Dub) Episode 6 – There are two kinds of lies; one concerns an accomplished fact, the other concerns a future duty. does not pass filter (language=fr-FR,), skipping ..
[download] Classroom of the Elite (Portuguese Dub) Episode 7 – Nothing is as dangerous as an ignorant friend; a wise enemy is to be preferred does not pass filter (language=fr-FR,), skipping ..
[download] Classroom of the Elite (Portuguese Dub) Episode 8 – Abandon all hope, ye who enter here. does not pass filter (language=fr-FR,), skipping ..
[download] Classroom of the Elite (Portuguese Dub) Episode 9 – Man is condemned to be free. does not pass filter (language=fr-FR,), skipping ..
[download] Classroom of the Elite (Portuguese Dub) Episode 10 – Every man has in himself the most dangerous traitor of all does not pass filter (language=fr-FR,), skipping ..
[download] Classroom of the Elite (Portuguese Dub) Episode 11 – What people commonly call fate is mostly their own stupidity. does not pass filter (language=fr-FR,), skipping ..
[download] Classroom of the Elite (Portuguese Dub) Episode 12 – Genius lives only one story above madness. does not pass filter (language=fr-FR,), skipping ..
[download] Classroom of the Elite Episode 1 – What is evil? Whatever springs from weakness. does not pass filter (language=fr-FR,), skipping ..
[download] Classroom of the Elite Episode 2 – It takes a great talent and skill to conceal one's talent and skill. does not pass filter (language=fr-FR,), skipping ..
[download] Classroom of the Elite Episode 3 – Man is an animal that makes bargains: no other animal does this - no dog exchanges bones with another. does not pass filter (language=fr-FR,), skipping ..
[download] Classroom of the Elite Episode 4 – We should not be upset that others hide the truth from us, when we hide it so often from ourselves. does not pass filter (language=fr-FR,), skipping ..
[download] Classroom of the Elite Episode 5 – Hell is other people does not pass filter (language=fr-FR,), skipping ..
[download] Classroom of the Elite Episode 6 – There are two kinds of lies; one concerns an accomplished fact, the other concerns a future duty. does not pass filter (language=fr-FR,), skipping ..
[download] Classroom of the Elite Episode 7 – Nothing is as dangerous as an ignorant friend; a wise enemy is to be preferred does not pass filter (language=fr-FR,), skipping ..
[download] Classroom of the Elite Episode 8 – Abandon all hope, ye who enter here. does not pass filter (language=fr-FR,), skipping ..
[download] Classroom of the Elite Episode 9 – Man is condemned to be free. does not pass filter (language=fr-FR,), skipping ..
[download] Classroom of the Elite Episode 10 – Every man has in himself the most dangerous traitor of all does not pass filter (language=fr-FR,), skipping ..
[download] Classroom of the Elite Episode 11 – What people commonly call fate is mostly their own stupidity. does not pass filter (language=fr-FR,), skipping ..
[download] Classroom of the Elite Episode 12 – Genius lives only one story above madness. does not pass filter (language=fr-FR,), skipping ..
[download] Classroom of the Elite Season 2 (English Dub) Episode 1 – Remember to keep a clear head in difficult times. does not pass filter (language=fr-FR,), skipping ..
[download] Classroom of the Elite Season 2 (English Dub) Episode 2 – There are two main human sins from which all the others derive: impatience and indolence. does not pass filter (language=fr-FR,), skipping ..
[download] Classroom of the Elite Season 2 (English Dub) Episode 3 – The greatest souls are capable of the greatest vices as well as of the greatest virtues. does not pass filter (language=fr-FR,), skipping ..

[download] Classroom of the Elite Season 2 (English Dub) Episode 4 – The material has to be created. does not pass filter (language=fr-FR,), skipping ..
[download] Classroom of the Elite Season 2 (English Dub) Episode 5 – Every failure is a step to success. does not pass filter (language=fr-FR,), skipping ..
[download] Classroom of the Elite Season 2 (English Dub) Episode 6 – Adversity is the first path to truth. does not pass filter (language=fr-FR,), skipping ..
[download] Classroom of the Elite Season 2 (English Dub) Episode 7 – To doubt everything or to believe everything are two equally convenient solutions; both dispense with the necessity of reflection. does not pass filter (language=fr-FR,), skipping ..
[download] Classroom of the Elite Season 2 (English Dub) Episode 8 – The wound is at her heart. does not pass filter (language=fr-FR,), skipping ..
[download] Classroom of the Elite Season 2 (English Dub) Episode 9 – If you make a mistake and do not correct it, this is called a mistake. does not pass filter (language=fr-FR,), skipping ..
[download] Classroom of the Elite Season 2 (English Dub) Episode 10 – People, often deceived by an illusive good, desire their own ruin. does not pass filter (language=fr-FR,), skipping ..
[download] Classroom of the Elite Season 2 (English Dub) Episode 11 – A man who cannot command himself will always be a slave. does not pass filter (language=fr-FR,), skipping ..
[download] Classroom of the Elite Season 2 (English Dub) Episode 12 – Force without wisdom falls of its own weight. does not pass filter (language=fr-FR,), skipping ..
[download] Classroom of the Elite Season 2 (English Dub) Episode 13 – The worst enemy you can meet will always be yourself. does not pass filter (language=fr-FR,), skipping ..
[download] Classroom of the Elite Season 2 (German Dub) Episode 1 – Remember to keep a clear head in difficult times. does not pass filter (language=fr-FR,), skipping ..
[download] Classroom of the Elite Season 2 (German Dub) Episode 2 – There are two main human sins from which all the others derive: impatience and indolence. does not pass filter (language=fr-FR,), skipping ..

[download] Classroom of the Elite Season 2 (German Dub) Episode 3 – The greatest souls are capable of the greatest vices as well as of the greatest virtues. does not pass filter (language=fr-FR,), skipping ..
[download] Classroom of the Elite Season 2 (German Dub) Episode 4 – The material has to be created. does not pass filter (language=fr-FR,), skipping ..
[download] Classroom of the Elite Season 2 (German Dub) Episode 5 – Every failure is a step to success. does not pass filter (language=fr-FR,), skipping ..
[download] Classroom of the Elite Season 2 (German Dub) Episode 6 – Adversity is the first path to truth. does not pass filter (language=fr-FR,), skipping ..
[download] Classroom of the Elite Season 2 (German Dub) Episode 7 – To doubt everything or to believe everything are two equally convenient solutions; both dispense with the necessity of reflection. does not pass filter (language=fr-FR,), skipping ..
[download] Classroom of the Elite Season 2 (German Dub) Episode 8 – The wound is at her heart. does not pass filter (language=fr-FR,), skipping ..
[download] Classroom of the Elite Season 2 (German Dub) Episode 9 – If you make a mistake and do not correct it, this is called a mistake. does not pass filter (language=fr-FR,), skipping ..
[download] Classroom of the Elite Season 2 (German Dub) Episode 10 – People, often deceived by an illusive good, desire their own ruin. does not pass filter (language=fr-FR,), skipping ..
[download] Classroom of the Elite Season 2 (German Dub) Episode 11 – A man who cannot command himself will always be a slave. does not pass filter (language=fr-FR,), skipping ..
[download] Classroom of the Elite Season 2 (German Dub) Episode 12 – Force without wisdom falls of its own weight. does not pass filter (language=fr-FR,), skipping ..
[download] Classroom of the Elite Season 2 (German Dub) Episode 13 – The worst enemy you can meet will always be yourself. does not pass filter (language=fr-FR,), skipping ..
[download] Classroom of the Elite Season 2 (French Dub) Episode 1 – Remember to keep a clear head in difficult times. does not pass filter (language=fr-FR,), skipping ..
[download] Classroom of the Elite Season 2 (French Dub) Episode 2 – There are two main human sins from which all the others derive: impatience and indolence. does not pass filter (language=fr-FR,), skipping ..

[download] Classroom of the Elite Season 2 (French Dub) Episode 3 – The greatest souls are capable of the greatest vices as well as of the greatest virtues. does not pass filter (language=fr-FR,), skipping ..
[download] Classroom of the Elite Season 2 (French Dub) Episode 4 – The material has to be created. does not pass filter (language=fr-FR,), skipping ..
[download] Classroom of the Elite Season 2 (French Dub) Episode 5 – Every failure is a step to success. does not pass filter (language=fr-FR,), skipping ..
[download] Classroom of the Elite Season 2 (French Dub) Episode 6 – Adversity is the first path to truth. does not pass filter (language=fr-FR,), skipping ..
[download] Classroom of the Elite Season 2 (French Dub) Episode 7 – To doubt everything or to believe everything are two equally convenient solutions; both dispense with the necessity of reflection. does not pass filter (language=fr-FR,), skipping ..
[download] Classroom of the Elite Season 2 (French Dub) Episode 8 – The wound is at her heart. does not pass filter (language=fr-FR,), skipping ..
[download] Classroom of the Elite Season 2 (French Dub) Episode 9 – If you make a mistake and do not correct it, this is called a mistake. does not pass filter (language=fr-FR,), skipping ..
[download] Classroom of the Elite Season 2 (French Dub) Episode 10 – People, often deceived by an illusive good, desire their own ruin. does not pass filter (language=fr-FR,), skipping ..
[download] Classroom of the Elite Season 2 (French Dub) Episode 11 – A man who cannot command himself will always be a slave. does not pass filter (language=fr-FR,), skipping ..
[download] Classroom of the Elite Season 2 (French Dub) Episode 12 – Force without wisdom falls of its own weight. does not pass filter (language=fr-FR,), skipping ..
[download] Classroom of the Elite Season 2 (French Dub) Episode 13 – The worst enemy you can meet will always be yourself. does not pass filter (language=fr-FR,), skipping ..
[download] Classroom of the Elite Season 2 (Spanish Dub) Episode 1 – Remember to keep a clear head in difficult times. does not pass filter (language=fr-FR,), skipping ..
[download] Classroom of the Elite Season 2 (Spanish Dub) Episode 2 – There are two main human sins from which all the others derive: impatience and indolence. does not pass filter (language=fr-FR,), skipping ..
[download] Classroom of the Elite Season 2 (Spanish Dub) Episode 3 – The greatest souls are capable of the greatest vices as well as of the greatest virtues. does not pass filter (language=fr-FR,), skipping ..

[download] Classroom of the Elite Season 2 (Spanish Dub) Episode 4 – The material has to be created. does not pass filter (language=fr-FR,), skipping ..
[download] Classroom of the Elite Season 2 (Spanish Dub) Episode 5 – Every failure is a step to success. does not pass filter (language=fr-FR,), skipping ..
[download] Classroom of the Elite Season 2 (Spanish Dub) Episode 6 – Adversity is the first path to truth. does not pass filter (language=fr-FR,), skipping ..
[download] Classroom of the Elite Season 2 (Spanish Dub) Episode 7 – To doubt everything or to believe everything are two equally convenient solutions; both dispense with the necessity of reflection. does not pass filter (language=fr-FR,), skipping ..
[download] Classroom of the Elite Season 2 (Spanish Dub) Episode 8 – The wound is at her heart. does not pass filter (language=fr-FR,), skipping ..
[download] Classroom of the Elite Season 2 (Spanish Dub) Episode 9 – If you make a mistake and do not correct it, this is called a mistake. does not pass filter (language=fr-FR,), skipping ..
[download] Classroom of the Elite Season 2 (Spanish Dub) Episode 10 – People, often deceived by an illusive good, desire their own ruin. does not pass filter (language=fr-FR,), skipping ..
[download] Classroom of the Elite Season 2 (Spanish Dub) Episode 11 – A man who cannot command himself will always be a slave. does not pass filter (language=fr-FR,), skipping ..
[download] Classroom of the Elite Season 2 (Spanish Dub) Episode 12 – Force without wisdom falls of its own weight. does not pass filter (language=fr-FR,), skipping ..
[download] Classroom of the Elite Season 2 (Spanish Dub) Episode 13 – The worst enemy you can meet will always be yourself. does not pass filter (language=fr-FR,), skipping ..
[download] Classroom of the Elite Season 2 (Portuguese Dub) Episode 1 – Remember to keep a clear head in difficult times. does not pass filter (language=fr-FR,), skipping ..
[download] Classroom of the Elite Season 2 (Portuguese Dub) Episode 2 – There are two main human sins from which all the others derive: impatience and indolence. does not pass filter (language=fr-FR,), skipping ..
[download] Classroom of the Elite Season 2 (Portuguese Dub) Episode 3 – The greatest souls are capable of the greatest vices as well as of the greatest virtues. does not pass filter (language=fr-FR,), skipping ..
[download] Classroom of the Elite Season 2 (Portuguese Dub) Episode 4 – The material has to be created. does not pass filter (language=fr-FR,), skipping ..
[download] Classroom of the Elite Season 2 (Portuguese Dub) Episode 5 – Every failure is a step to success. does not pass filter (language=fr-FR,), skipping ..
[download] Classroom of the Elite Season 2 (Portuguese Dub) Episode 6 – Adversity is the first path to truth. does not pass filter (language=fr-FR,), skipping ..
[download] Classroom of the Elite Season 2 (Portuguese Dub) Episode 7 – To doubt everything or to believe everything are two equally convenient solutions; both dispense with the necessity of reflection. does not pass filter (language=fr-FR,), skipping ..
[download] Classroom of the Elite Season 2 (Portuguese Dub) Episode 8 – The wound is at her heart. does not pass filter (language=fr-FR,), skipping ..
[download] Classroom of the Elite Season 2 (Portuguese Dub) Episode 9 – If you make a mistake and do not correct it, this is called a mistake. does not pass filter (language=fr-FR,), skipping ..
[download] Classroom of the Elite Season 2 (Portuguese Dub) Episode 10 – People, often deceived by an illusive good, desire their own ruin. does not pass filter (language=fr-FR,), skipping ..
[download] Classroom of the Elite Season 2 (Portuguese Dub) Episode 11 – A man who cannot command himself will always be a slave. does not pass filter (language=fr-FR,), skipping ..
[download] Classroom of the Elite Season 2 (Portuguese Dub) Episode 12 – Force without wisdom falls of its own weight. does not pass filter (language=fr-FR,), skipping ..
[download] Classroom of the Elite Season 2 (Portuguese Dub) Episode 13 – The worst enemy you can meet will always be yourself. does not pass filter (language=fr-FR,), skipping ..
[download] Classroom of the Elite Season 2 Episode 1 – Remember to keep a clear head in difficult times. does not pass filter (language=fr-FR,), skipping ..
[download] Classroom of the Elite Season 2 Episode 2 – There are two main human sins from which all the others derive: impatience and indolence. does not pass filter (language=fr-FR,), skipping ..
[download] Classroom of the Elite Season 2 Episode 3 – The greatest souls are capable of the greatest vices as well as of the greatest virtues. does not pass filter (language=fr-FR,), skipping ..
[download] Classroom of the Elite Season 2 Episode 4 – The material has to be created. does not pass filter (language=fr-FR,), skipping ..
[download] Classroom of the Elite Season 2 Episode 5 – Every failure is a step to success. does not pass filter (language=fr-FR,), skipping ..
[download] Classroom of the Elite Season 2 Episode 6 – Adversity is the first path to truth. does not pass filter (language=fr-FR,), skipping ..
[download] Classroom of the Elite Season 2 Episode 7 – To doubt everything or to believe everything are two equally convenient solutions; both dispense with the necessity of reflection. does not pass filter (language=fr-FR,), skipping ..
[download] Classroom of the Elite Season 2 Episode 8 – The wound is at her heart. does not pass filter (language=fr-FR,), skipping ..
[download] Classroom of the Elite Season 2 Episode 9 – If you make a mistake and do not correct it, this is called a mistake. does not pass filter (language=fr-FR,), skipping ..
[download] Classroom of the Elite Season 2 Episode 10 – People, often deceived by an illusive good, desire their own ruin. does not pass filter (language=fr-FR,), skipping ..
[download] Classroom of the Elite Season 2 Episode 11 – A man who cannot command himself will always be a slave. does not pass filter (language=fr-FR,), skipping ..
[download] Classroom of the Elite Season 2 Episode 12 – Force without wisdom falls of its own weight. does not pass filter (language=fr-FR,), skipping ..
[download] Classroom of the Elite Season 2 Episode 13 – The worst enemy you can meet will always be yourself. does not pass filter (language=fr-FR,), skipping ..
[download] Finished downloading playlist: Classroom of the Elite

In this example and for you, which command would you have used?

@Rafawell
Copy link

Rafawell commented Aug 6, 2023

I did the test with the update from the main repository --update-to nightly, and it worked here.

F:[01]\FUNi>yt-dlp -v --user-agent "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/115.0" --match-filter "language=fr-FR" -f "b" -a "URLs.txt" --cookies-from-browser firefox -o "%(series)s - S%(season_number)sE%(episode_number)02d - %(episode)s" --print filename --print urls 1>>OVER.txt
[debug] Command-line config: ['-v', '--user-agent', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/115.0', '--match-filter', 'language=fr-FR', '-f', 'b', '-a', 'URLs.txt', '--cookies-from-browser', 'firefox', '-o', '%(series)s - S%(season_number)sE%(episode_number)02d - %(episode)s', '--print', 'filename', '--print', 'urls']
[debug] Batch file urls: ['https://www.crunchyroll.com/pt-br/series/GQWH0M9N8/my-dress-up-darling']
Extracting cookies from firefox
[debug] Extracting cookies from: "C:\Users\r2sce\AppData\Roaming\Mozilla\Firefox\Profiles\1919np28.default-release\cookies.sqlite"
Extracted 34 cookies from firefox
[debug] Encodings: locale cp1252, fs utf-8, pref cp1252, out cp1252 (No VT), error utf-8, screen utf-8
[debug] yt-dlp version nightly@2023.08.04.221808 [db7b054] (win_exe)
[debug] Python 3.8.10 (CPython AMD64 64bit) - Windows-10-10.0.22621-SP0 (OpenSSL 1.1.1k 25 Mar 2021)
[debug] exe versions: ffmpeg 6.0-full_build-www.gyan.dev (setts), ffprobe 6.0-full_build-www.gyan.dev
[debug] Optional libraries: Cryptodome-3.18.0, brotli-1.0.9, certifi-2023.07.22, mutagen-1.46.0, sqlite3-2.6.0, websockets-11.0.3
[debug] Proxy map: {}
[debug] Loaded 1860 extractors
[crunchyroll:playlist] Extracting URL: https://www.crunchyroll.com/pt-br/series/GQWH0M9N8/my-dress-up-darling
[debug] [crunchyroll:playlist] Using cxApiParam=cr_web
[crunchyroll:playlist] Authenticating with grant_type=client_id
[crunchyroll:playlist] GQWH0M9N8: Downloading series JSON (cms)
[download] Downloading playlist: My Dress-Up Darling
[crunchyroll:playlist] Retrieving signed policy
[crunchyroll:playlist] GQWH0M9N8: Downloading seasons JSON (signed cms)
[crunchyroll:playlist] GRMGC3Z8G: Downloading episode list JSON (signed cms)
[crunchyroll:playlist] GRJQC1MED: Downloading episode list JSON (signed cms)
[crunchyroll:playlist] GR49C738W: Downloading episode list JSON (signed cms)
[crunchyroll:playlist] GY19CP3G5: Downloading episode list JSON (signed cms)
[crunchyroll:playlist] GYNQCJ7WK: Downloading episode list JSON (signed cms)
[crunchyroll:playlist] G6X0C47KJ: Downloading episode list JSON (signed cms)
[crunchyroll:playlist] GY19CPEX7: Downloading episode list JSON (signed cms)
[crunchyroll:playlist] GR49C7XMV: Downloading episode list JSON (signed cms)
[crunchyroll:playlist] GR19CPE1N: Downloading episode list JSON (signed cms)
[crunchyroll:playlist] G65VCD9J1: Downloading episode list JSON (signed cms)
[crunchyroll:playlist] Playlist My Dress-Up Darling: Downloading 119 items of 119

@xamyp
Copy link
Author

xamyp commented Aug 6, 2023

I just tested and it works thank you. But how to have two Japanese and French audio tracks with French subtitles?

@Rafawell
Copy link

Rafawell commented Aug 6, 2023

Full subtitle
yt-dlp -v --user-agent "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/115.0" --match-filter "language=ja-JP" --skip-down --write-subs --sub-format "ass" --sub-lang "fr-FR" -a "URLs.txt" --cookies-from-browser firefox

Forced subtitle
yt-dlp -v --user-agent "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/115.0" --match-filter "language=fr-FR" --skip-down --write-subs --sub-format "ass" --sub-lang "fr-FR" -a "URLs.txt" --cookies-from-browser firefox

And with the command below, I retrieve the audio by calling FFmpeg to extract the audio from the video (it's the same as downloading the entire video and then extracting the audio).
yt-dlp -v --user-agent "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/115.0" --match-filter "language=fr-FR" -f "b" -a "URLs.txt" --cookies-from-browser firefox --external-downloader ffmpeg --external-downloader-args "-vn -c:a copy" -o "%%(series)s - S%%(season_number)sE%%(episode_number)02d - %%(episode)s.%%(ext)s"

@xamyp
Copy link
Author

xamyp commented Aug 6, 2023

Ok thank you and do you have the command to extract the French and Japanese audio through a single yt-dlp command?

@Rafawell
Copy link

Rafawell commented Aug 6, 2023

Unfortunately not, that's why I use different commands for each purpose and then I do the remux.🙃.. To do something more comprehensive, it would certainly be good in Python, and that's something I don't master😢

@Grub4K
Copy link
Member

Grub4K commented Sep 24, 2023

Since each language variant has its own url, video_id, metadata and even duration (#7741 (comment)), I think it is out of scope for yt-dlp. It should instead indeed be done using an external script or maybe a plugin. #7009 could be transformed into said plugin to do this instead.

@Grub4K Grub4K closed this as not planned Won't fix, can't repro, duplicate, stale Sep 24, 2023
@Grub4K Grub4K added wontfix This will not be worked on site-enhancement Feature request for some website and removed question Question labels Sep 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
site-enhancement Feature request for some website wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

6 participants