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

Equivalent of --get-url for subtitles? #12110

Closed
lixoof opened this issue Feb 13, 2017 · 1 comment
Closed

Equivalent of --get-url for subtitles? #12110

lixoof opened this issue Feb 13, 2017 · 1 comment

Comments

@lixoof
Copy link

@lixoof lixoof commented Feb 13, 2017

  • I've verified and I assure that I'm running youtube-dl 2017.02.11
  • At least skimmed through README and most notably 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

I want to print URL for the subtitle file, so after reading README I tried this:

youtube-dl --get-url --sub-format "srt" "http://example.com"

however, this does not work and will only print the video URL. I able to see part of the subtitle URL by doing this:

youtube-dl --skip-download --print-traffic --write-sub --sub-format "srt" "http://example.com"

but that will also download the subtitles and generates alot of ouput. I only want a single line with the full URL.

What is the equivalent of this:

youtube-dl --get-url "http://example.com"

just for printing the subtitle URL?

@dstftw
Copy link
Collaborator

@dstftw dstftw commented Feb 13, 2017

No such equivalent. Use --dump-json.

@dstftw dstftw closed this Feb 13, 2017
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
2 participants
You can’t perform that action at this time.