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

"--list-subs" messing with "--get" statements? #14621

Closed
Albretch opened this issue Oct 29, 2017 · 1 comment
Closed

"--list-subs" messing with "--get" statements? #14621

Albretch opened this issue Oct 29, 2017 · 1 comment

Comments

@Albretch
Copy link

@Albretch Albretch commented Oct 29, 2017

Try this youtube-dl one liner with and without "--list-subs"

_YT="1nG3GRb4vC4"
_YT="PLEtR4Vu4eCRayeQaNlYbAtOrGPYMH4FDp"
_LOG_FL="${YT}$(date +%Y%m%d%H%M%S).log"
time python youtube-dl --simulate --yes-playlist --ignore-errors --newline --no-progress --no-call-home --merge-output-format bestvideo+bestaudio --get-id --get-title --get-duration --get-format --list-subs "${_YT}" > "${_LOG_FL}" 2>&1
cat "${_LOG_FL}"
ls -l "${_LOG_FL}"
wc -l "${_LOG_FL}"

when you try include the information about the subtitles all other "--get"s are apparently purged from the output.

All you read in the documentation heal is: --list-subs List all available subtitles for the video

Why is this happening? How could include all substitles available for a video as a comma separated list (same as --sub-lang LANGS)?

lbrtchx

@dstftw
Copy link
Collaborator

@dstftw dstftw commented Oct 29, 2017

This is expected. Any --list-* option will only list. Parse JSON output.

@dstftw dstftw closed this Oct 29, 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.