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

If I use -o as parameter, all videos are downloaded one more time. #146

Closed
Jimmm opened this issue Aug 24, 2011 · 1 comment
Closed

If I use -o as parameter, all videos are downloaded one more time. #146

Jimmm opened this issue Aug 24, 2011 · 1 comment

Comments

@Jimmm
Copy link

@Jimmm Jimmm commented Aug 24, 2011

I want to name my videos like "name.mp4" without ID.

If I use -l or -t parameter, already downloaded videos will be skipped, but ID will be used as a part of a filename too.

If I use -o %(title)s.%(ext)s, all videos will be downloaded one more time and then renamed.

Is it possible to use -o parameter withot redownloads?

@phihag
Copy link
Contributor

@phihag phihag commented Sep 6, 2011

I'm not quite certain what your problem is. If you specify the -w parameter, youtube-dl will skip any files that already exist, no matter whether you use -o, -t, or -l.

If you have already downloaded the files and want to rename them, youtube-dl is not the right tool for the job. The shell is:

for f in *.mp4 *.flv *.webm; do mv "$f" $(echo "$f" | sed 's#-[a-zA-Z0-9]*\.#.#'); done
@rg3 rg3 closed this Sep 10, 2011
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
3 participants
You can’t perform that action at this time.