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.52k stars 10.05k forks source link

[Anime-on-demand.de] 401 unauthorized errors #16776

Open avohns opened 6 years ago

avohns 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.06.19. 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?


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

[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['-uaXXX', '-pXXX', 'https://anime-on-demand.de/anime/287', '-F', '-v']
[debug] Encodings: locale cp1252, fs mbcs, out cp850, pref cp1252
[debug] youtube-dl version 2018.06.19
[debug] Python version 3.4.4 (CPython) - Windows-10-10.0.17134
[debug] exe versions: ffmpeg N-82274-g34aeb5d, ffprobe N-82274-g34aeb5d, rtmpdump 2.3
[debug] Proxy map: {}
[debug] Using fake IP 188.42.50.164 (LU) as X-Forwarded-For.
[AnimeOnDemand] Downloading login page
[AnimeOnDemand] Logging in
[AnimeOnDemand] 287: Downloading webpage
[AnimeOnDemand] episode-1: Downloading jap-OmU videomaterial JSON
WARNING: Unable to download JSON metadata: HTTP Error 401: Unauthorized
[download] Downloading playlist: Cutie Honey Universe (Sub)
[AnimeOnDemand] playlist Cutie Honey Universe (Sub): Collected 5 video ids (downloading 5 of them)
[download] Downloading video 1 of 5
[info] Available formats for episode-1-teaser:
format code  extension  resolution note
0            mp4        unknown
[download] Downloading video 2 of 5
[info] Available formats for episode-2-teaser:
format code  extension  resolution note
0            mp4        unknown
[download] Downloading video 3 of 5
[info] Available formats for episode-3-teaser:
format code  extension  resolution note
0            mp4        unknown
[download] Downloading video 4 of 5
[info] Available formats for episode-4-teaser:
format code  extension  resolution note
0            mp4        unknown
[download] Downloading video 5 of 5
[info] Available formats for episode-5-teaser:
format code  extension  resolution note
0            mp4        unknown
[download] Finished downloading playlist: Cutie Honey Universe (Sub)
...
<end of log>

Description of your issue, suggested solution and other information

Anime-on-demand.de suddenly stopped working, Although I have an active subscription I am getting 401 “Unauthorized” errors. Already tried using cookies.txt instead of -u -p but to no avail.

AnimeHeaven commented 6 years ago

Same problem here...

[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['-v', 'https://anime-on-demand.de/anime/289']
[debug] Encodings: locale cp1252, fs mbcs, out cp850, pref cp1252
[debug] youtube-dl version 2018.06.25
[debug] Python version 3.4.4 (CPython) - Windows-10-10.0.17134
[debug] exe versions: ffmpeg N-91111-g380ca1bc0c, ffprobe N-91111-g380ca1bc0c
[debug] Proxy map: {}
[debug] Using fake IP 82.117.3.106 (LI) as X-Forwarded-For.
[AnimeOnDemand] 289: Downloading webpage
[AnimeOnDemand] episode-0: Downloading jap-OmU videomaterial JSON
WARNING: Unable to download JSON metadata: HTTP Error 401: Unauthorized
[download] Downloading playlist: Highschool DxD HERO (Sub)
[AnimeOnDemand] playlist Highschool DxD HERO (Sub): Collected 3 video ids (downloading 3 of them)
[download] Downloading video 1 of 3
[debug] Default format spec: bestvideo+bestaudio/best
[debug] Invoking downloader on 'https://s3-eu-central-1.amazonaws.com/aod-static/episodes/trailers/000/003/620/original/5fefada99d4270539217ac34e5172234537173ad.mp4?1524076849'
[download] Highschool DxD HERO (Sub) _ Episode 1 (Teaser)-episode-1-teaser.mp4 has already been downloaded
[download] 100% of 15.31MiB
[download] Downloading video 2 of 3
[debug] Default format spec: bestvideo+bestaudio/best
[debug] Invoking downloader on 'https://s3-eu-central-1.amazonaws.com/aod-static/episodes/trailers/000/003/621/original/55527f958c2c4368f542acdbe3468c19041a2a7b.mp4?1524739728'
[download] Highschool DxD HERO (Sub) _ Episode 2 (Teaser)-episode-2-teaser.mp4 has already been downloaded
[download] 100% of 13.15MiB
[download] Downloading video 3 of 3
[debug] Default format spec: bestvideo+bestaudio/best
[debug] Invoking downloader on 'https://s3-eu-central-1.amazonaws.com/aod-static/episodes/trailers/000/003/622/original/2a8404b531615af1a781e99b9d5f8e9448175ddb.mp4?1525363771'
[download] Highschool DxD HERO (Sub) _ Episode 3 (Teaser)-episode-3-teaser.mp4 has already been downloaded
[download] 100% of 6.38MiB
[download] Finished downloading playlist: Highschool DxD HERO (Sub)
Timtam commented 5 years ago

Same for me with latest version:

[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: [u'-v', u'--download-archive', u'ARCHIVE', u'-u', u'PRIVATE', u'-p', u'PRIVATE', u'--ffmpeg-location', u'/var/packages/ffmpeg/target/bin/', u'-f', u'best[format_id^=ger-Dub]/best', u'https://anime-on-demand.de/anime/219']
[debug] Encodings: locale UTF-8, fs UTF-8, out None, pref UTF-8
[debug] youtube-dl version 2019.03.09
[debug] Python version 2.7.12 (CPython) - Linux-4.4.59+-x86_64-with-glibc2.2.5
[debug] exe versions: ffmpeg 4.1, ffprobe 4.1
[debug] Proxy map: {}
[debug] Using fake IP 85.1.86.121 (CH) as X-Forwarded-For.
[AnimeOnDemand] Downloading login page
[AnimeOnDemand] Logging in
[AnimeOnDemand] 219: Downloading webpage
[AnimeOnDemand] episode-1: Downloading ger-Dub videomaterial JSON
WARNING: Unable to download JSON metadata: HTTP Error 401: Unauthorized
[AnimeOnDemand] episode-1: Downloading ger-OmU videomaterial JSON
WARNING: Unable to download JSON metadata: HTTP Error 401: Unauthorized
[AnimeOnDemand] episode-1: Downloading jap-OmU videomaterial JSON
WARNING: Unable to download JSON metadata: HTTP Error 401: Unauthorized
[AnimeOnDemand] episode-1: Downloading jap-Dub videomaterial JSON
WARNING: Unable to download JSON metadata: HTTP Error 401: Unauthorized
[download] Downloading playlist: Danganronpa
[AnimeOnDemand] playlist Danganronpa: Collected 12 video ids (downloading 12 of them)
[download] Downloading video 1 of 12
[debug] Invoking downloader on u'https://s3-eu-central-1.amazonaws.com/aod-static/episodes/trailers/000/002/516/original/cd7908a97f5c827244ba488af9282e98ecdca366.mp4?1484901272'
[download] Destination: Danganronpa _ Episode 1 (Teaser)-episode-1-teaser.mp4

[download]   0.0% of 16.30MiB at 961.56KiB/s ETA 00:18
[download]   0.0% of 16.30MiB at  2.05MiB/s ETA 00:08
[download]   0.0% of 16.30MiB at  4.11MiB/s ETA 00:04
[download]   0.1% of 16.30MiB at 627.40KiB/s ETA 00:26
[download]   0.2% of 16.30MiB at  1.24MiB/s ETA 00:13
[download]   0.4% of 16.30MiB at  1.28MiB/s ETA 00:12
[download]   0.8% of 16.30MiB at  2.45MiB/s ETA 00:06
[download]   1.5% of 16.30MiB at  3.18MiB/s ETA 00:05
[download]   3.1% of 16.30MiB at  4.83MiB/s ETA 00:03
[download]   6.1% of 16.30MiB at  5.75MiB/s ETA 00:02
[download]  12.3% of 16.30MiB at  8.66MiB/s ETA 00:01
[download]  24.5% of 16.30MiB at 10.79MiB/s ETA 00:01
[download]  49.1% of 16.30MiB at 12.69MiB/s ETA 00:00
[download]  73.6% of 16.30MiB at 13.54MiB/s ETA 00:00
[download]  98.1% of 16.30MiB at 13.70MiB/s ETA 00:00
[download] 100.0% of 16.30MiB at 13.73MiB/s ETA 00:00
[download] 100% of 16.30MiB in 00:01
[download] Downloading video 2 of 12
[debug] Invoking downloader on u'https://s3-eu-central-1.amazonaws.com/aod-static/episodes/trailers/000/002/517/original/b20654fc5ce112c163c12f5ea37c59f1bd73aef5.mp4?1485423779'
[download] Destination: Danganronpa _ Episode 2 (Teaser)-episode-2-teaser.mp4

[download]   0.0% of 13.77MiB at 972.71KiB/s ETA 00:14
[download]   0.0% of 13.77MiB at  2.20MiB/s ETA 00:06
[download]   0.0% of 13.77MiB at  4.41MiB/s ETA 00:03
[download]   0.1% of 13.77MiB at  8.20MiB/s ETA 00:01
[download]   0.2% of 13.77MiB at  1.18MiB/s ETA 00:11
[download]   0.4% of 13.77MiB at  1.19MiB/s ETA 00:11
[download]   0.9% of 13.77MiB at  2.28MiB/s ETA 00:05
[download]   1.8% of 13.77MiB at  2.80MiB/s ETA 00:04
[download]   3.6% of 13.77MiB at  4.36MiB/s ETA 00:03
[download]   7.3% of 13.77MiB at  6.62MiB/s ETA 00:01
[download]  14.5% of 13.77MiB at 10.35MiB/s ETA 00:01
[download]  29.0% of 13.77MiB at 11.46MiB/s ETA 00:00
[download]  58.1% of 13.77MiB at 16.49MiB/s ETA 00:00
[download]  87.1% of 13.77MiB at 18.16MiB/s ETA 00:00
[download] 100.0% of 13.77MiB at 18.84MiB/s ETA 00:00
[download] 100% of 13.77MiB in 00:00
[download] Downloading video 3 of 12
...

It downloads the teasers, but not the actual playlists.

ch4d1 commented 4 years ago

The problem is caused by using "anime-on-demand.de" instead of "www.anime-on-demand.de" I guess the extractor could rewrite the urls automatically but it doesn't. I think this can be #closed

adrianheine commented 3 years ago

Are there any episodes I can download without a login?

ch4d1 commented 3 years ago

Are there any episodes I can download without a login?

Login is required for every title. But you don't need to buy a premium membership to watch episode one of every anime. Should be fine for testing.

The problem is caused by using "anime-on-demand.de" instead of "www.anime-on-demand.de" I guess the extractor could rewrite the urls automatically but it doesn't. I think this can be #closed

As mentioned here. The issue is caused by using https://anime-on-demand.de instead of https://WWW.anime-on-demand.de

adrianheine commented 3 years ago

The problem is caused by using "anime-on-demand.de" instead of "www.anime-on-demand.de" I guess the extractor could rewrite the urls automatically but it doesn't. I think this can be #closed

As mentioned here. The issue is caused by using https://anime-on-demand.de instead of https://WWW.anime-on-demand.de

That might be, but you also get the same error if you're not logged in, that's how I got here.