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

stop replacing colon ':' with space+- #22696

Closed
AlBannaTechno opened this issue Oct 13, 2019 · 3 comments
Closed

stop replacing colon ':' with space+- #22696

AlBannaTechno opened this issue Oct 13, 2019 · 3 comments
Labels

Comments

@AlBannaTechno
Copy link

@AlBannaTechno AlBannaTechno commented Oct 13, 2019

Hi
I notice when i download videos contains colon : youtube-dl auto replace it with - = space + -
i need to only replace : with - as stander not space + -

Why
For Example When i download this play list https://www.youtube.com/watch?v=tpIctyqH29Q&list=PL8dPuuaLjXtNlUrzyH5r6jN9ulIgZBpdo

Notice most of videos contains : so when i download this playlist from any site or software which use stander replacement of : with -

i get name as 02.Early Computing- Crash Course Computer Science #1.mp4

but when i try to get subtitles i get 02.Early Computing - Crash Course Computer Science #1.en.vtt

Now Subtitle Does Not match video name so no-media will auto-attach it

i use youtube-dl.exe --write-sub --skip-download --yes-playlist --sub-lang="en,ar" -o %(autonumber)02d.%(title)s.%(ext)s https://www.youtube.com/playlist?list=PL8dPuuaLjXtNlUrzyH5r6jN9ulIgZBpdo
So How To Do that and why this strange behavior

@dstftw
Copy link
Collaborator

@dstftw dstftw commented Oct 13, 2019

Windows does not support : in filenames.

@dstftw dstftw closed this Oct 13, 2019
@dstftw dstftw added the invalid label Oct 13, 2019
@AlBannaTechno
Copy link
Author

@AlBannaTechno AlBannaTechno commented Oct 13, 2019

@dstftw i know that it's not my question i ask why the strange behavior of replacing colon with two characters space + dash all download-sites only replace colon with one character which dash

@dstftw
Copy link
Collaborator

@dstftw dstftw commented Oct 13, 2019

Cause this it's the only way to get idiomatic and file safe form of Section: Subsection as Section - Subsection.

@ytdl-org ytdl-org locked and limited conversation to collaborators Apr 21, 2020
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.