YouTube said: <a href ... #9913

Closed
opened 2026-02-21 04:04:27 -05:00 by deekerman · 3 comments
Owner

Originally created by @Khang-NT on GitHub (Feb 9, 2017).

Make sure you are using the latest version: run youtube-dl --version and ensure your version is 2017.02.07. 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.02.07

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

$ youtube-dl -j u9Crsd1Z90k -v
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['-j', 'u9Crsd1Z90k', '-v']
[debug] Encodings: locale UTF-8, fs utf-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2017.02.07
[debug] Python version 3.5.2 - Darwin-16.4.0-x86_64-i386-64bit
[debug] exe versions: ffmpeg 3.1.3, ffprobe 3.1.3
[debug] Proxy map: {}
ERROR: u9Crsd1Z90k: YouTube said: <a href="http://www.youtube.com/watch?v=u9Crsd1Z90k&feature=player_embedded" target="_blank">Watch this video on YouTube.</a>
Playback on other websites has been disabled by the video owner.
Traceback (most recent call last):
  File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/youtube_dl/YoutubeDL.py", line 696, in extract_info
    ie_result = ie.extract(url)
  File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/youtube_dl/extractor/common.py", line 369, in extract
    return self._real_extract(url)
  File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/youtube_dl/extractor/youtube.py", line 1385, in _real_extract
    expected=True, video_id=video_id)
youtube_dl.utils.ExtractorError: u9Crsd1Z90k: YouTube said: <a href="http://www.youtube.com/watch?v=u9Crsd1Z90k&feature=player_embedded" target="_blank">Watch this video on YouTube.</a>
Playback on other websites has been disabled by the video owner.

No idea for this error, maybe some cases haven't handled yet.

Originally created by @Khang-NT on GitHub (Feb 9, 2017). ### Make sure you are using the *latest* version: run `youtube-dl --version` and ensure your version is *2017.02.07*. If it's not read [this FAQ entry](https://github.com/rg3/youtube-dl/blob/master/README.md#how-do-i-update-youtube-dl) and update. Issues with outdated version will be rejected. - [x] I've **verified** and **I assure** that I'm running youtube-dl **2017.02.07** ### Before submitting an *issue* make sure you have: - [x] At least skimmed through [README](https://github.com/rg3/youtube-dl/blob/master/README.md) and **most notably** [FAQ](https://github.com/rg3/youtube-dl#faq) and [BUGS](https://github.com/rg3/youtube-dl#bugs) sections - [x] [Searched](https://github.com/rg3/youtube-dl/search?type=Issues) the bugtracker for similar issues including closed ones ### What is the purpose of your *issue*? - [x] 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 --- ``` $ youtube-dl -j u9Crsd1Z90k -v [debug] System config: [] [debug] User config: [] [debug] Custom config: [] [debug] Command-line args: ['-j', 'u9Crsd1Z90k', '-v'] [debug] Encodings: locale UTF-8, fs utf-8, out UTF-8, pref UTF-8 [debug] youtube-dl version 2017.02.07 [debug] Python version 3.5.2 - Darwin-16.4.0-x86_64-i386-64bit [debug] exe versions: ffmpeg 3.1.3, ffprobe 3.1.3 [debug] Proxy map: {} ERROR: u9Crsd1Z90k: YouTube said: <a href="http://www.youtube.com/watch?v=u9Crsd1Z90k&feature=player_embedded" target="_blank">Watch this video on YouTube.</a> Playback on other websites has been disabled by the video owner. Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/youtube_dl/YoutubeDL.py", line 696, in extract_info ie_result = ie.extract(url) File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/youtube_dl/extractor/common.py", line 369, in extract return self._real_extract(url) File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/youtube_dl/extractor/youtube.py", line 1385, in _real_extract expected=True, video_id=video_id) youtube_dl.utils.ExtractorError: u9Crsd1Z90k: YouTube said: <a href="http://www.youtube.com/watch?v=u9Crsd1Z90k&feature=player_embedded" target="_blank">Watch this video on YouTube.</a> Playback on other websites has been disabled by the video owner. ``` No idea for this error, maybe some cases haven't handled yet.
Author
Owner

@ThomasChr commented on GitHub (Feb 9, 2017):

Same problem here.

@ThomasChr commented on GitHub (Feb 9, 2017): Same problem here.
Author
Owner

@dstftw commented on GitHub (Feb 9, 2017):

This video requires authentication.

@dstftw commented on GitHub (Feb 9, 2017): This video requires authentication.
Author
Owner

@Khang-NT commented on GitHub (Feb 9, 2017):

YouTube-DL detects age-restricted content, but when I skip this check, it works without problem.

So I think, it's better to skip the step handle "age-restricted content" if possible.
https://github.com/Khang-NT/youtube-dl/blob/master/youtube_dl/extractor/youtube.py#L1305-L1376

To do that, just do "get video info" first. Then if "get video info" success, we can skip "age-restricted" block.

if not video_info and re.search(r'player-age-gate-content">', video_webpage) is not None:
     ...

Is it correct?

@Khang-NT commented on GitHub (Feb 9, 2017): YouTube-DL detects **age-restricted content**, but when I skip this check, it works without problem. So I think, it's better to skip the step handle "age-restricted content" if possible. https://github.com/Khang-NT/youtube-dl/blob/master/youtube_dl/extractor/youtube.py#L1305-L1376 To do that, just do "get video info" first. Then if "get video info" success, we can skip "age-restricted" block. ```python if not video_info and re.search(r'player-age-gate-content">', video_webpage) is not None: ... ``` Is it correct?
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/youtube-dl#9913
No description provided.