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

Add renaming capabilities #16376

Closed
Aphexus opened this issue May 4, 2018 · 3 comments
Closed

Add renaming capabilities #16376

Aphexus opened this issue May 4, 2018 · 3 comments

Comments

@Aphexus
Copy link

@Aphexus Aphexus commented May 4, 2018

I downloaded a bunch of youtube videos and the file names are horrible and uninformative. It would be nice if youtube-dl could "rename" them using tags, date, format, and other meta-data. Possibly some type of regex replace string using certain meta info.

That is, I can re-download them again but if the file exists and the rename parameter is used then it will just rename them rather than re-download them.

I'm thinking of something like -rn %title% - %date% - %id% - [%tags%]
or whatever.

The idea though is that it must check if the file already exists somehow(possibly check based on file size and then check name and see if it matches the default name or check meta contents of file, etc).

@dstftw
Copy link
Collaborator

@dstftw dstftw commented May 4, 2018

Out of scope. Use correct output templates during downloading.

@dstftw dstftw closed this May 4, 2018
@Aphexus
Copy link
Author

@Aphexus Aphexus commented May 4, 2018

What do you mean correct durning downloading? That is impossible. If you mean before then as I've said, I have already downloaded them. I have several hundred gigs of videos that I can't redownload... the file names must be fixed up. youtube-dl already has the ability to detect if a file exists, so it is not much more difficult to rename that file if a rename argument is supplied.

@dstftw
Copy link
Collaborator

@dstftw dstftw commented May 4, 2018

Existing file does not mean it was downloaded by youtube-dl thus you can't use this as marker for renaming. Otherwise it's a right way to mess unrelated files. No ambiguous feature like that will be added. As already said: correct output templates must be use initially.

@ytdl-org ytdl-org locked and limited conversation to collaborators May 4, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
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.