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

ERROR: This video can't be played here, but you can still watch it on YouTube. #18163

Closed
5 of 9 tasks
Mahkahe opened this issue Nov 12, 2018 · 3 comments
Closed
5 of 9 tasks
Labels

Comments

@Mahkahe
Copy link

Mahkahe commented Nov 12, 2018

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

Before submitting an issue make sure you have:

  • At least skimmed through the README, most notably the FAQ and BUGS sections
  • Searched the bugtracker for similar issues including closed ones
  • Checked that provided video/audio/playlist URLs (if any) are alive and playable in a browser

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

If the purpose of this issue is a bug report, site support request or you are not completely sure provide the full verbose output as follows:

Add the -v flag to your command line you run youtube-dl with (youtube-dl -v <your command line>), copy the whole output and insert it here. It should look similar to one below (replace it with your log inserted between triple ```):

$ youtube-dl -v 'https://www.youtube.com/watch?v=EgcrtvomXoI'
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['-v', 'https://www.youtube.com/watch?v=EgcrtvomXoI']
[debug] Encodings: locale UTF-8, fs utf-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2018.11.07
[debug] Python version 3.7.1 (CPython) - Linux-4.18.16-arch1-1-ARCH-x86_64-with-arch
[debug] exe versions: ffmpeg n4.1, ffprobe n4.1
[debug] Proxy map: {}
[youtube] EgcrtvomXoI: Downloading webpage
[youtube] EgcrtvomXoI: Downloading embed webpage
[youtube] EgcrtvomXoI: Refetching age-gated info webpage
ERROR: This video can't be played here, but you can still watch it on YouTube. Watch on YouTube
Traceback (most recent call last):
  File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 792, in extract_info
    ie_result = ie.extract(url)
  File "/usr/local/bin/youtube-dl/youtube_dl/extractor/common.py", line 508, in extract
    ie_result = self._real_extract(url)
  File "/usr/local/bin/youtube-dl/youtube_dl/extractor/youtube.py", line 1920, in _real_extract
    raise ExtractorError(error_message, expected=True)
youtube_dl.utils.ExtractorError: This video can't be played here, but you can still watch it on YouTube. Watch on YouTube


Description of your issue, suggested solution and other information

I notice that most age-gated or otherwise restricted content are able to be downloaded using youtube-dl, but I've run into a few examples of videos which youtube-dl is unable to download, simply printing the error "ERROR: This video can't be played here, but you can still watch it on YouTube. Watch on YouTube". I'm not really sure why this is, as other videos in the same "limited" state work with ytdl.

Thank you

@dstftw
Copy link
Collaborator

dstftw commented Nov 12, 2018

You must authenticate to download this video.

@dstftw dstftw closed this as completed Nov 12, 2018
@dstftw dstftw added the invalid label Nov 12, 2018
@ghost
Copy link

ghost commented Jan 28, 2019

@dstftw How do you authenticate? I've been trying to download by whole channels but once youtube-dl hits a video that is restricted it says "ERROR: This video can't be played here, but you can still watch it on YouTube. Watch on YouTube" and it seems I cannot even skip that specific video and continue to download the rest of the channel.

@pzygielo
Copy link

Study https://github.com/rg3/youtube-dl/blob/master/README.md#options
(you'll find option to Continue on download errors, for example to skip unavailable videos in a playlist there).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants