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

can not download youtube video with dash in video key #2198

Closed
degenkolb opened this issue Jan 22, 2014 · 1 comment
Closed

can not download youtube video with dash in video key #2198

degenkolb opened this issue Jan 22, 2014 · 1 comment

Comments

@degenkolb
Copy link

@degenkolb degenkolb commented Jan 22, 2014

Hi

I stumbled upon a problem with a dash in the video key for youtube videos.

An example would be the video
https://www.youtube.com/watch?v=-vf2RoIhwpg
"CEFRC Combustion Chemistry Day 2 Part 1"

the command line gives me
$ youtube-dl https://www.youtube.com/watch?v=-vf2RoIhwpg
[youtube] Setting language
[youtube] -vf2RoIhwpg: Downloading webpage
[youtube] -vf2RoIhwpg: Downloading video info webpage
[youtube] -vf2RoIhwpg: Extracting video information
[download] Destination: CEFRC Combustion Chemistry Day 2 Part 1--vf2RoIhwpg.mp4
[download] 100% of 166.62MiB in 00:00
ERROR: content too short (expected 174714385 bytes and served 8745)

My version is
$ youtube-dl --version
2014.01.22.3

with regards
Christian

@phihag
Copy link
Contributor

@phihag phihag commented Jan 22, 2014

What makes you think that the dash is part of the problem? This is an error on YouTube's side (most likely filesystem and/or encoding issues), the video doesn't play (after a couple of images) in the webbrowser either. You can switch to the low-quality format, which seems to be unaffected:

$ youtube-dl https://www.youtube.com/watch?v=-vf2RoIhwpg -f 17
[youtube] Setting language
[youtube] -vf2RoIhwpg: Downloading webpage
[youtube] -vf2RoIhwpg: Downloading video info webpage
[youtube] -vf2RoIhwpg: Extracting video information
[download] Destination: CEFRC Combustion Chemistry Day 2 Part 1--vf2RoIhwpg.3gp
[download] 100% of 36.53MiB in 00:04

Chances are that Youtube will notice the error and re-encode the video, or restore the defective filesystem from backups.

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.