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

Exclude dubs in crunchyroll download #18235

Open
PonyFlare opened this issue Nov 18, 2018 · 3 comments
Open

Exclude dubs in crunchyroll download #18235

PonyFlare opened this issue Nov 18, 2018 · 3 comments

Comments

@PonyFlare
Copy link

@PonyFlare PonyFlare commented Nov 18, 2018

Make sure you are using the latest version: run youtube-dl --version and ensure your version is 2018.11.18. If it's not, read this FAQ entry and update. Issues with outdated version will be rejected.

  • I've verified and I assure that I'm running youtube-dl 2018.11.18

Before submitting an issue make sure you have:

  • At least skimmed through the README, most notably the FAQ and BUGS sections
  • Searched the bugtracker for similar issues including closed ones
  • Checked that provided video/audio/playlist URLs (if any) are alive and playable in a browser

What is the purpose of your issue?

  • Bug report (encountered problems with youtube-dl)
  • Site support request (request for adding support for a new site)
  • Feature request (request for a new functionality)
  • Question
  • Other

Description of your issue, suggested solution and other information

Is there a simple way to exclude dubs (or choose a specific one) from a crunchyroll download?
Durara, for example, has both Japanese and English available, but there is only a single page - so it should be downloading everything in both languages if I point youtube-dl to that url.
Dragon Maid would be even worse without a filter, since it has a total of 5 languages.

I could of course choose each episode I want to download individually (and will if I have to), but I'm looking for something I can add to the command line to do it automatically.

@grandly
Copy link

@grandly grandly commented Nov 21, 2018

I think Crunchyroll specifies the language in the format IDs. If that is the case, you'll be able to do something like youtube-dl -f 'best[format_id$=jp]' <url> or something like that. Run youtube-dl -F <url> on a Crunchyroll URL and post what it gives.

https://github.com/rg3/youtube-dl#format-selection describes format selection in great detail.

If the language isn't specified in the formats but it is somewhere else in the metadata, you might be able to use the --match-filter option to the same effect.

@PonyFlare
Copy link
Author

@PonyFlare PonyFlare commented Nov 22, 2018

Ah, thanks.

hls-audio-frFR-hardsub-frFR-401 mp4 428x240 [frFR] 401k , avc1.42c015, 23.974fps, mp4a.40.2
hls-audio-frFR-hardsub-frFR-547 mp4 640x360 [frFR] 547k , avc1.4d401e, 23.974fps, mp4a.40.2
hls-audio-frFR-hardsub-frFR-1008 mp4 848x480 [frFR] 1008k , avc1.4d401f, 23.974fps, mp4a.40.2
hls-audio-frFR-hardsub-frFR-2525 mp4 1280x720 [frFR] 2525k , avc1.640028, 23.974fps, mp4a.40.2
hls-audio-frFR-hardsub-frFR-5778 mp4 1920x1080 [frFR] 5778k , avc1.640028, 23.974fps, mp4a.40.2
hls-audio-frFR-401 mp4 428x240 [frFR] 401k , avc1.42c015, 23.974fps, mp4a.40.2
hls-audio-frFR-547 mp4 640x360 [frFR] 547k , avc1.4d401e, 23.974fps, mp4a.40.2
hls-audio-frFR-1009 mp4 848x480 [frFR] 1009k , avc1.4d401f, 23.974fps, mp4a.40.2
hls-audio-frFR-2526 mp4 1280x720 [frFR] 2526k , avc1.640028, 23.974fps, mp4a.40.2
hls-audio-frFR-5781 mp4 1920x1080 [frFR] 5781k , avc1.640028, 23.974fps, mp4a.40.2 (best)

and further down...

...
hls-audio-jaJP-6422-1 mp4 1920x1080 [jaJP] 6422k , avc1.640028, 23.974fps, mp4a.40.2
hls-audio-jaJP-6422-2 mp4 1920x1080 [jaJP] 6422k , avc1.640028, 23.974fps, mp4a.40.2 (best)

So a filter for [format_id*=jaJP] seems to work. Problem is it still goes through every single file and errors if specified format is not available. This means a need for -i and much extra wait time while it goes through each video. It keeps it entirely automated past giving the URL, at least.

@Yavos
Copy link

@Yavos Yavos commented Jun 27, 2019

A possible solution/workaround might be to use the --playlist-start and --playlist-end parameters.
Since what videos will be shown is depending on your link (country code used) and it seems to always start at the bottom you could just do a little math and figure out what to skip.

Also given the country code in playlists is working (should be fixed soon) you could filter a bit by that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
3 participants
You can’t perform that action at this time.