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

Playlist download will not finish if there is a 'Removed' video on it #1210

Closed
hadifarnoud opened this issue Aug 8, 2013 · 2 comments
Closed

Comments

@hadifarnoud
Copy link

@hadifarnoud hadifarnoud commented Aug 8, 2013

When youtube-dl gets to a video on the playlist which is removed for any reason, it does not carry on to the next video.

house_music % youtube-dl http://www.youtube.com/playlist\?list\=PL5FD622D916E0A523 -v -t
[debug] youtube-dl version 2013.01.02
[debug] Python version 2.7.5 - Darwin-12.4.0-x86_64-i386-64bit
[debug] Proxy map: {}
[youtube] PL 5FD622D916E0A523: Downloading page #1
[youtube] PL 5FD622D916E0A523: Found 33 videos
[youtube] Setting language
[youtube] v-4olrCNOpY: Downloading video webpage
[youtube] v-4olrCNOpY: Downloading video info webpage
[youtube] v-4olrCNOpY: Extracting video information
[download] Destination: Dario Nunez, Hector Rodriguez - Zumbahe - (Original Mix)-v-4olrCNOpY.flv
[download] 100.0% of 31.96M at    1.58M/s ETA 00:00
[youtube] KmhEK4ebp-I: Downloading video webpage
[youtube] KmhEK4ebp-I: Downloading video info webpage
[youtube] KmhEK4ebp-I: Extracting video information
[download] Destination: Chris Montana, Etienne Ozborne - El Hacha (Original Mix)-KmhEK4ebp-I.flv
[download] 100.0% of 13.64M at    1.25M/s ETA 00:00
[youtube] d9ZyeWjJF7A: Downloading video webpage
[youtube] d9ZyeWjJF7A: Downloading video info webpage
[youtube] d9ZyeWjJF7A: Extracting video information
[download] Destination: Professor Green - Monster feat. Example (Camo & Krooked Remix)-d9ZyeWjJF7A.mp4
[download] 100.0% of 15.00M at    1.75M/s ETA 00:00
[youtube] aS1GW2vopTQ: Downloading video webpage
[youtube] aS1GW2vopTQ: Downloading video info webpage
ERROR: YouTube said: "Ali Ashabi - Fa..."
The YouTube account associated with this video has been terminated due to multiple third-party notifications of copyright infringement.
  File "/usr/local/Cellar/python/2.7.5/Frameworks/Python.framework/Versions/2.7/lib/python2.7/runpy.py", line 162, in _run_module_as_main
    "__main__", fname, loader, pkg_name)
  File "/usr/local/Cellar/python/2.7.5/Frameworks/Python.framework/Versions/2.7/lib/python2.7/runpy.py", line 72, in _run_code
    exec code in run_globals
  File "/usr/local/bin/youtube-dl/__main__.py", line 17, in <module>
    youtube_dl.main()
  File "/usr/local/bin/youtube-dl/youtube_dl/__init__.py", line 486, in main
    _real_main()
  File "/usr/local/bin/youtube-dl/youtube_dl/__init__.py", line 470, in _real_main
    retcode = fd.download(all_urls)
  File "/usr/local/bin/youtube-dl/youtube_dl/FileDownloader.py", line 498, in download
    videos = ie.extract(url)
  File "/usr/local/bin/youtube-dl/youtube_dl/InfoExtractors.py", line 91, in extract
    return self._real_extract(url)
  File "/usr/local/bin/youtube-dl/youtube_dl/InfoExtractors.py", line 1683, in _real_extract
    self._downloader.download(['http://www.youtube.com/watch?v=%s' % id])
  File "/usr/local/bin/youtube-dl/youtube_dl/FileDownloader.py", line 498, in download
    videos = ie.extract(url)
  File "/usr/local/bin/youtube-dl/youtube_dl/InfoExtractors.py", line 91, in extract
    return self._real_extract(url)
  File "/usr/local/bin/youtube-dl/youtube_dl/InfoExtractors.py", line 394, in _real_extract
    self._downloader.trouble(u'ERROR: YouTube said: %s' % video_info['reason'][0])
  File "/usr/local/bin/youtube-dl/youtube_dl/FileDownloader.py", line 224, in trouble
    tb = u''.join(traceback.format_list(traceback.extract_stack()))

@phihag
Copy link
Contributor

@phihag phihag commented Aug 8, 2013

This is intentional; like any other shell program, youtube-dl aborts on the first error (so you notice the error when running it automatically). Pass in -i to continue on errors.

@phihag phihag closed this Aug 8, 2013
@hadifarnoud
Copy link
Author

@hadifarnoud hadifarnoud commented Aug 8, 2013

looks like an exception to me. it also could be a lot cleaner. and adding "Pass in -i to continue on errors." after the error is not a bad idea.

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.