youtube-dl: [VrtNU] Authentication failed

Checklist

  • I’m reporting a broken site support
  • I’ve verified that I’m running youtube-dl version 2021.06.06
  • I’ve checked that all provided URLs are alive and playable in a browser
  • I’ve checked that all URLs and arguments with special characters are properly quoted or escaped
  • I’ve searched the bugtracker for similar issues including closed ones

Verbose log

[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['--username', 'PRIVATE', '--password', 'PRIVATE', 'https://www.vrt.be/vrtnu/a-z/de-zevende-dag/2021/de-zevende-dag-d20210627/', '--verbose']
[debug] Encodings: locale cp1252, fs mbcs, out cp437, pref cp1252
[debug] youtube-dl version 2021.06.06
[debug] Python version 3.4.4 (CPython) - Windows-10-10.0.19041
[debug] exe versions: none
[debug] Proxy map: {}
[VrtNU] Logging in
[VrtNU] Requesting a token
WARNING: [VrtNU] Authentication failed
[VrtNU] Waiting for 1 seconds before trying again
[VrtNU] Requesting a token
WARNING: [VrtNU] Authentication failed
[VrtNU] Waiting for 1 seconds before trying again
[VrtNU] Requesting a token
WARNING: [VrtNU] Authentication failed
[VrtNU] Waiting for 1 seconds before trying again
[VrtNU] de-zevende-dag-d20210627: Downloading webpage
[Canvas] pbs-pub-0a163591-000e-4f09-bf70-8c0e3347045a$vid-2daf5010-a534-49b9-940b-cbe40cb96384: Downloading token
[Canvas] pbs-pub-0a163591-000e-4f09-bf70-8c0e3347045a$vid-2daf5010-a534-49b9-940b-cbe40cb96384: Downloading video JSON
ERROR: This video is only available for registered users. Use --username and --password or --netrc to provide account credentials.
Traceback (most recent call last):
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmpkqxnwl31\build\youtube_dl\YoutubeDL.py", line 815, in wrapper
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmpkqxnwl31\build\youtube_dl\YoutubeDL.py", line 836, in __extract_info
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmpkqxnwl31\build\youtube_dl\extractor\common.py", line 534, in extract
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmpkqxnwl31\build\youtube_dl\extractor\canvas.py", line 77, in _real_extract
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmpkqxnwl31\build\youtube_dl\extractor\common.py", line 943, in raise_login_required
youtube_dl.utils.ExtractorError: This video is only available for registered users. Use --username and --password or --netrc to provide account credentials.

Description

Altough I’m using correct credentials, youtube-dl is unable to download content, because of the Authentication failed warning. The correct cookie is not set. I’ve noticed also that https://token.vrt.be is no longer accessible.

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Comments: 16

Most upvoted comments

For people ending up in this issue you can always download with a little more effort (even no authentication needed):

  1. Load the video page and open dev tools
  2. Go to the network tab and refresh
  3. filter by “pbs” and select the only filtered request
  4. in targetUrls find the type: "hls_aes" and use that uri to simply youtube-dl <uri> in the cli

image

This is fixed in yt-dlp

Hi @sharethewisdom , I tried to download the example you mentioned and it works for me:

$ git clone https://github.com/pgaig/youtube-dl.git
$ cd youtube-dl
$ git checkout test-vrtnu-logon
$ python3 -m youtube_dl https://www.vrt.be/vrtnu/a-z/de-zevende-dag/2021/de-zevende-dag-d20210627/ --netrc
[VrtNU] Login data
[VrtNU] Requesting XSRF Token
[VrtNU] Requesting a token
...

Note that you get old VrtNU loglines, so my guess is that you’re using an older version of youtube-dl. Maybe export PYTHONPATH=. and execute from the checkedout path?