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

Add an option for action to take when requested subtitles are unavailable #16603

Open
pkkm opened this issue Jun 1, 2018 · 0 comments
Open

Add an option for action to take when requested subtitles are unavailable #16603

pkkm opened this issue Jun 1, 2018 · 0 comments

Comments

@pkkm
Copy link

@pkkm pkkm commented Jun 1, 2018

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

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

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

Subtitles are sometimes essential for a video to be useful. For example, a person learning Spanish may wish to download only the videos that contain both English and Spanish subtitles from a large playlist. The same applies to a machine learning researcher working on automatic translation or speech recognition.

I propose adding an option for this, for example --on-missing-sub warn|skip|abort. warn (the default) would be the current behavior, skip would skip downloading the video when any of the subtitles specified with --sub-lang are unavailable and abort would cause youtube-dl to quit.

An example invocation (for the use-case described in the first paragraph) would be:

youtube-dl --write-sub --sub-lang en,es-ES --on-missing-sub skip <URL of playlist>
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
1 participant
You can’t perform that action at this time.