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.
[vrv] Subtitle Extraction #19238
[vrv] Subtitle Extraction #19238
Comments
|
But it still needs to be able to find subtitles as well since since shows like anime use ass but TV shows would use vtt, so wouldn't it need an argument to find either or? |
|
Could always "attempt" to extract and save all the ones it extracts, as I believe the code I provide does. Shouldn't require a command line argument as long as you are telling youtube-dl to save subs. |
|
That line in py you provided is for one kind of sub vtt the argument line for either or would your line only grabs closed caption subs as each provider uses different subtitles, some vtt, some ass and some srt. You are asking it to "get" cc vtt subs. The line you would need would need to as to get all subs but it would need to output vtt,ass,srt ect. the command line argu according to the read me page is ---all-subs Download all the available subtitles of the video. if you were to do something similar in the cmd prompt. |
Make sure you are using the latest version: run
youtube-dl --versionand ensure your version is 2019.02.08. If it's not, read this FAQ entry and update. Issues with outdated version will be rejected.Before submitting an issue make sure you have:
What is the purpose of your issue?
If the purpose of this issue is a site support request please provide all kinds of example URLs support for which should be included (replace following example URLs by yours):
Note that youtube-dl does not support sites dedicated to copyright infringement. In order for site support request to be accepted all provided example URLs should not violate any copyrights.
Description of your issue, suggested solution and other information
VRV extractor does not always get subs. Bothers me to the extent that I found the path to resolving.
I want to preface that Python is not something I am familiar with.
However I think adding the following to line 182 of vrv.py will increase subtitle extraction rate:
Basically your checking for a 'subtitles' key when you should be looking for a 'captions' key for these videos. Not sure if changed, different for different content providers, or what. Think checking for both key's values will suffice for extracting more subs across the site.