ytdl-org / youtube-dl

Command-line program to download videos from YouTube.com and other video sites
http://ytdl-org.github.io/youtube-dl/
The Unlicense
132.41k stars 10.04k forks source link

NBC no longer working #30408

Closed jriker1 closed 2 years ago

jriker1 commented 2 years ago

On youtube-dl on Windows. Version 2021.12.17. just started that I'm getting an access denied from NBC. Also happens with yt-dlp.

youtube-dl --audio-quality 0 --add-metadata --ap-mso Comcast_SSO --ap-username <username> --ap-password <password> https://www.nbc.com/saturday-night-live/video/december-18-paul-rudd/9000199366 -o "Saturday Night Live S47E9.mp4"
[NBC] 9000199366: Downloading JSON metadata
[NBC] 9000199366: Downloading Provider Redirect Page
[NBC] 9000199366: Logging in
[NBC] 9000199366: Retrieving Session
ERROR: Unable to download webpage: HTTP Error 401: Unauthorized (caused by <HTTPError 401: 'Unauthorized'>); please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; see  https://yt-dl.org/update  on how to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.

With verbose getting:

ERROR: Unable to download webpage: HTTP Error 401: Unauthorized (caused by <HTTPError 401: 'Unauthorized'>); please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; see  https://yt-dl.org/update  on how to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.
  File "C:\Users\jriker\AppData\Local\Programs\Python\Python39\lib\site-packages\youtube_dl\extractor\common.py", line 634, in _request_webpage
    return self._downloader.urlopen(url_or_request)
  File "C:\Users\jriker\AppData\Local\Programs\Python\Python39\lib\site-packages\youtube_dl\YoutubeDL.py", line 2288, in urlopen
    return self._opener.open(req, timeout=self._socket_timeout)
  File "C:\Users\jriker\AppData\Local\Programs\Python\Python39\lib\urllib\request.py", line 523, in open
    response = meth(req, response)
  File "C:\Users\jriker\AppData\Local\Programs\Python\Python39\lib\urllib\request.py", line 632, in http_response
    response = self.parent.error(
  File "C:\Users\jriker\AppData\Local\Programs\Python\Python39\lib\urllib\request.py", line 561, in error
    return self._call_chain(*args)
  File "C:\Users\jriker\AppData\Local\Programs\Python\Python39\lib\urllib\request.py", line 494, in _call_chain
    result = func(*args)
  File "C:\Users\jriker\AppData\Local\Programs\Python\Python39\lib\urllib\request.py", line 641, in http_error_default
    raise HTTPError(req.full_url, code, msg, hdrs, fp)
jriker1 commented 2 years ago

Thanks for the info. Probably not the answer for youtube-dl as a whole but appreciative of any paths. Can this download the files or am I supposed to take the output and do something with it separately?

jriker1 commented 2 years ago

Couldn't figure out how to do it. Tried like

nbc -hi 9000199366

Gave me the list of streams

tried

nbc -hi 9000199366 -h 1

but didn't do anything. Figured -h 1 would download ID 1

jriker1 commented 2 years ago

So this is odd, a week later the original video downloaded. They haven't posted this weeks video but maybe there isn't one with the holiday. Would hope this wasn't a Xfinity SSO issue and took them a week to fix it.