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

How do I repeat download until success? #2207

Closed
davidhedlund opened this issue Jan 23, 2014 · 1 comment
Closed

How do I repeat download until success? #2207

davidhedlund opened this issue Jan 23, 2014 · 1 comment

Comments

@davidhedlund
Copy link

@davidhedlund davidhedlund commented Jan 23, 2014

More specific: this is what I trying to acheive:

for x in $(find . -name "*.txt"); do youtube-dl --batch-file "$x" -o "$(echo $x | sed -e s,.txt,,)/%(playlist)s - %(id)s.%(ext)s" --match-title ^%(playlist)s$; done

Notice: --match-title ^%(playlist)s$

youtube-dl "ytsearch:Afgin - Old is Gold" --match-title ^"Afgin - Old is Gold"$ --ignore-errors # will give up after one try, how do I make it continue with next hit

@phihag
Copy link
Contributor

@phihag phihag commented Jan 23, 2014

ytsearch: just returns the top video result. Use ytsearch10:, ytsearch42: (or any other number), or ytsearchall:, although the latter can result in an excessive number of results.

@phihag phihag closed this Jan 23, 2014
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.