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

What to do when 'best' doesn't work on your script? #22574

Closed
v9999 opened this issue Oct 1, 2019 · 1 comment
Closed

What to do when 'best' doesn't work on your script? #22574

v9999 opened this issue Oct 1, 2019 · 1 comment

Comments

@v9999
Copy link

@v9999 v9999 commented Oct 1, 2019

  • I'm asking a question
  • I've looked through the README and FAQ for similar questions
  • I've searched the bugtracker for similar questions including closed ones

Question

Hello there, I use youtube-dl through termux on android, using share functionality on youtube.
To do this, I have this script set up (origin: https://www.reddit.com/r/Android/comments/66kehg/twoclick_downloads_of_youtube_videos_straight/):

--no-mtime -o /data/data/com.termux/files/home/storage/shared/Youtube/%(title)s.%(ext)s -f "best[height<=720]"

However, this script won't work in videos that can't be downloaded with the "best" format.

Here's an example: https://www.youtube.com/watch?v=5a0ill945vs

The "-f best" argument returns "ERROR: Did not get any data blocks"

Without arguments, youtube-dl manages to download a file, but if I download all files without the best tag, I'll get huge files and storage is limited.

How can I make my script try no arguments only if it fails with best[height<=720]?

Thanks.

@v9999 v9999 added the question label Oct 1, 2019
@dstftw
Copy link
Collaborator

@dstftw dstftw commented Oct 1, 2019

You can't.

@dstftw dstftw closed this Oct 1, 2019
@dstftw dstftw added the duplicate label Oct 1, 2019
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.