Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
Wanted: a way to download english subtitles without worrying about en vs enUS. #6596
Comments
|
Can you give an example URL with |
|
@keybounce You can try |
|
An example of an enUS was on crunchyroll. Silly me, I saw that youtube-dl had updated that morning (I have a cron job that checks every morning), and didn't realize that the chrunchyroll support wasn't in yet. So it died on the subtitle before it could die on the video. |
|
Alright, and with the fixed crunchyroll support:
Looks like it found the enUS, but didn't find the other two, and complained. So how do I say "any of these" instead of "all of these"? |
|
"any of these" is not implemented yet. |
|
Ha. Well, that answers my question from the first post, |
|
Ok, now for a shell-scripting issue for python. My "macro script" now looks like:
Simple enough: Turn on debugging, get a list of subtitles, select the first english one, save it, and then use that -- but for debugging, just print what it would be. What I need help with is python reporting an error:
How do I tell python to not complain? |
|
Ok, "Any of these" for subtitles seems to be working now, on Crunchyroll. Python is no longer complaining on that "try to find the subtitles", and it isn't even needed anymore. |
|
@ping commented on 2015. aug. 18. 13:57 CEST:
So I have to do this for every darned english variant that might pop up? Or guess every single english variant and its country code that might exist... (Who knows how many.) Recently I ran into Canadian english, so with my config it was of course ignored. |
I am looking to have a "simple" macro that downloads with subtitles.
For example, my current shell script is
It's simple enough, but has taken me some time to learn the formatting. This tries to grab a 480p file, either in mp4 format, or recoded into mp4; it's been updated as I've been able to get 480p mp4's from youtube in one step now.
All is well and good until I run into sites where english subtitles are "enUS" instead of "en". Suddenly, it fails with
WARNING: en subtitles not available for 678135
ERROR: requested format not available
Is there a way to make this "just work"?