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

download of all a user's videos on youtube fails for all videos after the first error #421

Closed
canavan opened this issue Sep 23, 2012 · 3 comments

Comments

@canavan
Copy link

@canavan canavan commented Sep 23, 2012

If youtube-dl encounters an error while downloading a complete channel, all subsequent download attempts will fail as well with a generic error message (ERROR: unable to download video) even if -i is set. The videos can be downloaded individually with separate invocations of youtube-dl.

Example:

$ youtube-dl  -i http://www.youtube.com/user/lindseystomp
[youtube] Setting language
[youtube] user lindseystomp: Downloading video ids from 1 to 51
[youtube] user lindseystomp: Collected 35 video ids (downloading 35 of them)
[youtube] sf6LD2B_kDQ: Downloading video webpage
[youtube] sf6LD2B_kDQ: Downloading video info webpage
[youtube] sf6LD2B_kDQ: Extracting video information
[download] sf6LD2B_kDQ.mp4 has already been downloaded
[youtube] _oNpmSAvpGQ: Downloading video webpage
[youtube] _oNpmSAvpGQ: Downloading video info webpage
[youtube] _oNpmSAvpGQ: Extracting video information
[download] _oNpmSAvpGQ.mp4 has already been downloaded
[youtube] 0HJoNXWWMuA: Downloading video webpage
[youtube] 0HJoNXWWMuA: Downloading video info webpage
[youtube] 0HJoNXWWMuA: Extracting video information
[download] 0HJoNXWWMuA.mp4 has already been downloaded
[youtube] TCL94-MsxYc: Downloading video webpage
[youtube] TCL94-MsxYc: Downloading video info webpage
[youtube] TCL94-MsxYc: Extracting video information
[download] TCL94-MsxYc.mp4 has already been downloaded
[youtube] YpRyJBoEiMg: Downloading video webpage
[youtube] YpRyJBoEiMg: Downloading video info webpage
[youtube] YpRyJBoEiMg: Extracting video information
[download] YpRyJBoEiMg.mp4 has already been downloaded
[youtube] ar7brs0qOG8: Downloading video webpage
[youtube] ar7brs0qOG8: Downloading video info webpage
[youtube] ar7brs0qOG8: Extracting video information
[download] ar7brs0qOG8.mp4 has already been downloaded
[youtube] 0g9poWKKpbU: Downloading video webpage
[youtube] 0g9poWKKpbU: Downloading video info webpage
[youtube] 0g9poWKKpbU: Extracting video information
[download] 0g9poWKKpbU.mp4 has already been downloaded
[youtube] PEKFx5zwVjw: Downloading video webpage
[youtube] PEKFx5zwVjw: Downloading video info webpage
ERROR: YouTube said: Unfortunately, this SME-music-content is not available in Germany because GEMA has not granted the respective music publishing rights.
[youtube] BSLPH9d-jsI: Downloading video webpage
[youtube] BSLPH9d-jsI: Downloading video info webpage
[youtube] BSLPH9d-jsI: Extracting video information

ERROR: unable to download video
[youtube] a4m5BfETSOs: Downloading video webpage
[youtube] a4m5BfETSOs: Downloading video info webpage
[youtube] a4m5BfETSOs: Extracting video information

ERROR: unable to download video
[youtube] aHjpOzsQ9YI: Downloading video webpage
[youtube] aHjpOzsQ9YI: Downloading video info webpage
[youtube] aHjpOzsQ9YI: Extracting video information
@jaimeMF
Copy link
Collaborator

@jaimeMF jaimeMF commented Oct 6, 2013

This is working for me:

youtube-dl 'http://www.youtube.com/watch?v=ncazAp-WIRs&feature=c4-overview&list=UUPkOaQ4-Vg5dt9_z7thik_w' --simulate  -i
[debug] System config: []
[debug] User config: ['--keep-video', '--verbose', '--write-info-json', '--write-thumbnail']
[debug] Command-line args: ['http://www.youtube.com/watch?v=ncazAp-WIRs&feature=c4-overview&list=UUPkOaQ4-Vg5dt9_z7thik_w', '--simulate', '-i']
[debug] youtube-dl version 2013.09.29
[debug] Python version 2.7.5 - Darwin-11.4.2-x86_64-i386-64bit
[debug] Proxy map: {}
[youtube:playlist] UUPkOaQ4-Vg5dt9_z7thik_w: Downloading page #1
[youtube:playlist] UUPkOaQ4-Vg5dt9_z7thik_w: Downloading page #2
[youtube:playlist] UUPkOaQ4-Vg5dt9_z7thik_w: Downloading page #3
[youtube:playlist] UUPkOaQ4-Vg5dt9_z7thik_w: Downloading page #4
[youtube:playlist] UUPkOaQ4-Vg5dt9_z7thik_w: Downloading page #5
[youtube:playlist] UUPkOaQ4-Vg5dt9_z7thik_w: Downloading page #6
[download] Downloading playlist: Uploaded videos
[youtube:playlist] playlist 'Uploaded videos': Collected 202 video ids (downloading 202 of them)
[download] Downloading video #1 of 202
[youtube] Setting language
[youtube] fs9i1jVTjUY: Downloading video webpage
[youtube] fs9i1jVTjUY: Downloading video info webpage
ERROR: YouTube said: The uploader has not made this video available in your country.
Traceback (most recent call last):
  File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 334, in extract_info
    ie_result = ie.extract(url)
  File "/usr/local/bin/youtube-dl/youtube_dl/extractor/common.py", line 103, in extract
    return self._real_extract(url)
  File "/usr/local/bin/youtube-dl/youtube_dl/extractor/youtube.py", line 1311, in _real_extract
    raise ExtractorError(u'YouTube said: %s' % video_info['reason'][0], expected=True)
ExtractorError: YouTube said: The uploader has not made this video available in your country.

[download] Downloading video #2 of 202
[youtube] AKDlXclM2ak: Downloading video webpage
[youtube] AKDlXclM2ak: Downloading video info webpage
ERROR: YouTube said: The uploader has not made this video available in your country.
Traceback (most recent call last):
  File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 334, in extract_info
    ie_result = ie.extract(url)
  File "/usr/local/bin/youtube-dl/youtube_dl/extractor/common.py", line 103, in extract
    return self._real_extract(url)
  File "/usr/local/bin/youtube-dl/youtube_dl/extractor/youtube.py", line 1311, in _real_extract
    raise ExtractorError(u'YouTube said: %s' % video_info['reason'][0], expected=True)
ExtractorError: YouTube said: The uploader has not made this video available in your country.

Could you check with a more recent version of youtube-d? If it fails, please post the output if you ran the command with the --verbose option.

@canavan
Copy link
Author

@canavan canavan commented Oct 6, 2013

The -i switch was actually what I was missing. Please close this bug.

@phihag phihag closed this Oct 6, 2013
@jaimeMF
Copy link
Collaborator

@jaimeMF jaimeMF commented Oct 6, 2013

Thanks for checking it.

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
3 participants
You can’t perform that action at this time.