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
131.26k stars 9.94k forks source link

Authentication is now failing. #15498

Closed keybounce closed 6 years ago

keybounce commented 6 years ago

Please follow the guide below


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

Before submitting an issue make sure you have:

What is the purpose of your issue?


The following sections concretize particular purposed issues, you can erase any section (the contents between triple ---) not applicable to your issue


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 ```):

keybounceMBP:AdultSwim michael$  ./yt-here 
[debug] System config: []
[debug] User config: ['-k', '--hls-prefer-native', '--abort-on-unavailable-fragment', '-o', '%(series)s/s%(season_number)02d-e%(episode_number)02d-%(title)s.%(ext)s', '-f', '\nbest[ext=mp4][height>431][height<=576]/\nbestvideo[ext=mp4][height=480]+bestaudio[ext=m4a]/\nbest[ext=mp4][height>340][height<=431]/\nbestvideo[ext=mp4][height>360][height<=576]+bestaudio/\nbest[height>340][height<=576]/\nbestvideo[height>360][height<=576]+bestaudio/\nbestvideo[height=360]+bestaudio/\nbest[ext=mp4][height>=280][height<=360]/\nbest[height<=576]/\nworst', '--ap-mso', 'Dish', '--ap-username', 'PRIVATE', '--ap-password', 'PRIVATE', '--write-sub', '--write-auto-sub', '--sub-lang', 'en,enUS,en-us', '--sub-format', 'ass/srt/best', '--convert-subs', 'ass', '--embed-subs', '--mark-watched', '--download-archive', 'downloaded-videos.txt']
[debug] Custom config: []
[debug] Command-line args: ['--hls-prefer-native', '-o', '%(series)s/s%(season_number)02d-e%(episode_number)02d-%(title)s.%(ext)s', '-v', '-i', '-a', 'dl-list']
[debug] Batch file urls: ['http://www.adultswim.com/videos/robot-chicken/', 'http://www.adultswim.com/videos/ghost-in-the-shell/', 'http://www.adultswim.com/videos/tokyo-ghoul/', 'http://www.adultswim.com/videos/naruto-shippuden/', 'http://www.adultswim.com/videos/mobile-suit-gundam-unicorn-re0096/', 'http://www.adultswim.com/videos/mobile-suit-gundam-iron-blooded-orphans/', 'http://www.adultswim.com/videos/attack-on-titan/', 'http://www.adultswim.com/videos/hunter-x-hunter/', 'http://www.adultswim.com/videos/sand-whale-and-me/', 'http://www.adultswim.com/videos/dragon-ball-super/', 'http://www.adultswim.com/videos/dragon-ball-z-kai/', 'http://www.adultswim.com/videos/lupin-the-3rd-part-4/', 'http://www.adultswim.com/videos/one-punch-man/', 'http://www.adultswim.com/videos/apollo-gauntlet/']
[debug] Encodings: locale UTF-8, fs utf-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2018.02.04
[debug] Python version 3.6.4 (CPython) - Darwin-13.4.0-x86_64-i386-64bit
[debug] exe versions: ffmpeg 3.3.4, ffprobe 3.3.4, rtmpdump 2.4
[debug] Proxy map: {}
[AdultSwim] robot-chicken: Downloading webpage
[download] Downloading playlist: Robot Chicken
[AdultSwim] playlist Robot Chicken: Collected 121 video ids (downloading 121 of them)
[download] Downloading video 1 of 121
[download] EKqPx8QzQVqpYhm3nyVfZg has already been recorded in archive
[download] Downloading video 2 of 121
[download] Z4YzL56ETUWEH5QQ_Hn1PQ has already been recorded in archive
[download] Downloading video 3 of 121
[download] Z-enTzwERyaUNAIC7FeO7Q has already been recorded in archive
[download] Downloading video 4 of 121
[AdultSwim] fools-goldfinger: Downloading webpage
[AdultSwim] epQcQEFrS3CDQxhHibNPlA: Downloading XML
[AdultSwim] 1570863: Downloading Provider Redirect Page
[AdultSwim] 1570863: Downloading login page (redirect)
[AdultSwim] 1570863: Downloading login page (redirect)
[AdultSwim] 1570863: Downloading Provider Login Page
[AdultSwim] 1570863: Attempting social login
[AdultSwim] 1570863: Completing social login
[AdultSwim] 1570863: Logging in
[AdultSwim] 1570863: Confirming Login
[AdultSwim] 1570863: 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; type  youtube-dl -U  to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.
  File "/Users/michael/bin/youtube-dl/youtube_dl/extractor/common.py", line 519, in _request_webpage
    return self._downloader.urlopen(url_or_request)
  File "/Users/michael/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 2199, in urlopen
    return self._opener.open(req, timeout=self._socket_timeout)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/urllib/request.py", line 532, in open
    response = meth(req, response)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/urllib/request.py", line 642, in http_response
    'http', request, response, code, msg, hdrs)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/urllib/request.py", line 570, in error
    return self._call_chain(*args)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/urllib/request.py", line 504, in _call_chain
    result = func(*args)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/urllib/request.py", line 650, in http_error_default
    raise HTTPError(req.full_url, code, msg, hdrs, fp)

[download] Downloading video 5 of 121
[AdultSwim] fight-club-paradise: Downloading webpage
^C
ERROR: Interrupted by user

keybounceMBP:AdultSwim michael$ 

Authentication is now failing. I'm getting errors trying to login at both cartoon network, and Disney.

I have pr #12000 (gkoelln's dish MSO) added.

I successfully fetched programs on January 19. This is the first time I have attempted to access anything since then.

Earlier today, I had the wrong password listed in the YouTube DL config file. I had to call dish to get my account unlocked, verified that I could log into my browser, corrected the password in the config file, and then attempted to run the download scripts again. But now I'm only getting unauthorized access.

remitamine commented 6 years ago

Dish is not a supported TV Provider.