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

[Youtube] --abort-on-error is triggered for planned streams #12920

Closed
VADemon opened this issue Apr 29, 2017 · 2 comments
Closed

[Youtube] --abort-on-error is triggered for planned streams #12920

VADemon opened this issue Apr 29, 2017 · 2 comments

Comments

@VADemon
Copy link

@VADemon VADemon commented Apr 29, 2017

Make sure you are using the latest version: run youtube-dl --version and ensure your version is 2017.04.28. If it's not read this FAQ entry and update. Issues with outdated version will be rejected.

  • I've verified and I assure that I'm running youtube-dl 2017.04.28

Before submitting an issue make sure you have:

  • At least skimmed through README and most notably FAQ and BUGS sections
  • Searched the bugtracker for similar issues including closed ones

What is the purpose of your issue?

  • Bug report (encountered problems with youtube-dl)
  • Site support request (request for adding support for a new site)
  • Feature request (request for a new functionality)
  • Question
  • Other

[debug] System config: []
[debug] User config: ['--rate-limit', '4.2M', '-f', 'bestvideo[height<=720]+bestaudio/bestvideo[width<=1920]+bestaudio/bestvideo+bestaudio/best']
[debug] Custom config: []
[debug] Command-line args: ['-v', '--write-pages', 'youtu.be/sCc4edfDAyI']
[debug] Encodings: locale cp1251, fs mbcs, out cp1251, pref cp1251
[debug] youtube-dl version 2017.04.28
[debug] Python version 3.4.4 - Windows-7
[debug] exe versions: none
[debug] Proxy map: {}
WARNING: The url doesn't specify the protocol, trying with http
[youtube] sCc4edfDAyI: Downloading webpage
[youtube] Saving request to sCc4edfDAyI_https_-_www.youtube.com_watchv=sCc4edfDAyI_gl=US_hl=en_has_verified=1_bpctr=9999999999.dump
[youtube] sCc4edfDAyI: Downloading video info webpage
[youtube] Saving request to sCc4edfDAyI_https_-_www.youtube.com_get_video_info_video_id=sCc4edfDAyI_el=info_ps=default_eurl=_gl=US_hl=en.dump
[youtube] sCc4edfDAyI: Extracting video information
ERROR: This video is unavailable.
Traceback (most recent call last):
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\rg3\tmpagq0np72\build\youtube_dl\YoutubeDL.py", line 760, in extract_info
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\rg3\tmpagq0np72\build\youtube_dl\extractor\common.py", line 429, in extract
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\rg3\tmpagq0np72\build\youtube_dl\extractor\youtube.py", line 1715, in _real_extract
youtube_dl.utils.ExtractorError: This video is unavailable.

I'm using --abort-on-error to download my subscriptions, so I don't miss any video by mistake. The current logic makes it impossible to proceed downloading of the subscription list because of a planned stream that is not yet available for playback/download.

Since it can't be downloaded, youtube-dl aborts further operation. In my opinion such planned streams should not trigger this option and be ignored - it's up to a discussion though.

Proposal: If possible, detect if it's a planned stream and if so, do not abort the download even when the option is present.

Dump files:

sCc4edfDAyI_https_-_www.youtube.com_get_video_info_video_id=sCc4edfDAyI_el=info_ps=default_eurl=_gl=US_hl=en.dump.txt

sCc4edfDAyI_https_-_www.youtube.com_watchv=sCc4edfDAyI_gl=US_hl=en_has_verified=1_bpctr=9999999999.dump.txt

@dstftw
Copy link
Collaborator

@dstftw dstftw commented Apr 29, 2017

Use -i instead.

@dstftw dstftw closed this Apr 29, 2017
@VADemon
Copy link
Author

@VADemon VADemon commented Apr 29, 2017

-i ignores any error, the request is to ignore this specific error for planned streams.

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.