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

start fname with alph-numerical [was: don't allow hyphen, '-', at the beginning of the file name] #5035

Closed
257 opened this issue Feb 23, 2015 · 2 comments

Comments

@257
Copy link

@257 257 commented Feb 23, 2015

use detox(1) if need be. file names like --gasdgf.mp4 are hard to deal with. mv(1) for one will refuse to work unless '--' is passed as arg1 and so on.

@phihag phihag closed this in 5a42414 Feb 24, 2015
@phihag
Copy link
Contributor

@phihag phihag commented Feb 24, 2015

Thank you for the report. In youtube-dl 2015.02.24.1 and newer, the filename will only start with - if your template starts with an ID (e.g. you pass in --id), because in that case, the filename needs to be verbatim. See our FAQ if you need help updating.

@257 257 changed the title don't allow hyphen, '-', at the beginning of the file name start fname with alph-numerical [was: don't allow hyphen, '-', at the beginning of the file name] Mar 8, 2015
@257
Copy link
Author

@257 257 commented Mar 8, 2015

[please re-opne]
it still allows for garbage to be used for the beginning of the filename. for this, for example:

https://www.youtube.com/watch?v=MZtQ24thVg0

youtube-dl will use '.' as the beginning of the name. that's just wrong in *nix systems since it will hide the file.

i strongly suggest using detox, reinventing the wheel is probably not worth the time.

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.