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

Closed
opened 2026-02-20 21:02:37 -05:00 by deekerman · 1 comment
Owner

Originally created by @Jimmm on GitHub (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?

Originally created by @Jimmm on GitHub (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?
Author
Owner

@phihag commented on GitHub (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
@phihag commented on GitHub (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 ```
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/youtube-dl#107
No description provided.