Xonshiz/anime-dl

Currently not grabbing 1080p versions of shows and not showing Resolution correctly

Opened this issue · 75 comments

See below attachment, two different shows both giving the same result of "DEBUG: video_resolution : x"

The actual downloaded file is also 720p instead of 1080p as my settings indicate.

error.log.txt

Nicnl commented

I have the same problem

I'm tinkering with the code, I may have a temporary solution

Nicnl commented

It seems that there was changes on the xml response

Previously, the xml would contain:

<metadata>
  <width>848</width>
  <height>480</height>
  <duration>1234.56</duration>
</metadata>

But now it looks like this:

<metadata>
  <width></width>
  <height></height>
  <duration>1234.56</duration>
</metadata>

That explains why the resolution is "x", the width and the height is empty

@Nicnl So it is from Crunchyroll side.
even the HTML5 web player does not offer resolution options.

Nicnl commented

Along with that, it seems that there's some issues with those requests:

if str(resolution).lower() in ['1080p', '1080', 'fhd', 'best']:
info_url = "http://www.crunchyroll.com/xml/?req=RpcApiVideoPlayer_GetStandardConfig&media_id=%s&video_format=108&video_quality=80&current_page=%s" % (
video_id, url)
elif str(resolution).lower() in ['720p', '720', 'hd']:
info_url = "http://www.crunchyroll.com/xml/?req=RpcApiVideoPlayer_GetStandardConfig&media_id=%s&video_format=106&video_quality=62&current_page=%s" % (
video_id, url)
elif str(resolution).lower() in ['480p', '480', 'sd']:
info_url = "http://www.crunchyroll.com/xml/?req=RpcApiVideoPlayer_GetStandardConfig&media_id=%s&video_format=106&video_quality=61&current_page=%s" % (
video_id, url)
elif str(resolution).lower() in ['360p', '360', 'cancer']:
info_url = "http://www.crunchyroll.com/xml/?req=RpcApiVideoPlayer_GetStandardConfig&media_id=%s&video_format=106&video_quality=60&current_page=%s" % (
video_id, url)

The parameter video_quality seems to be ignored for some reason

However, when I try to print the content of the master.m3u8 file from this part of the code:

m3u8_file_text = m3u8_file_connect.text.splitlines()[2]

It seems to contain all the resolutions:

#EXTM3U
#EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=1234567,RESOLUTION=1280x720,FRAME-RATE=23.974,CODECS="avc1.123456,mp4a.40.2"
https://xxxxxxxxxxxxxxxxxxxxxxxxxxxxx
#EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=1234567,RESOLUTION=1280x720,FRAME-RATE=23.974,CODECS="avc1.123456,mp4a.40.2"
https://xxxxxxxxxxxxxxxxxxxxxxxxxxxxx
#EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=1234567,RESOLUTION=1280x720,FRAME-RATE=23.974,CODECS="avc1.123456,mp4a.40.2"
https://xxxxxxxxxxxxxxxxxxxxxxxxxxxxx
#EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=1234567,RESOLUTION=1920x1080,FRAME-RATE=23.974,CODECS="avc1.123456,mp4a.40.2"
https://xxxxxxxxxxxxxxxxxxxxxxxxxxxxx
#EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=1234567,RESOLUTION=1920x1080,FRAME-RATE=23.974,CODECS="avc1.123456,mp4a.40.2"
https://xxxxxxxxxxxxxxxxxxxxxxxxxxxxx
#EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=1234567,RESOLUTION=1920x1080,FRAME-RATE=23.974,CODECS="avc1.123456,mp4a.40.2"
https://xxxxxxxxxxxxxxxxxxxxxxxxxxxxx
#EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=1234567,RESOLUTION=848x480,FRAME-RATE=23.974,CODECS="avc1.123456,mp4a.40.2"
https://xxxxxxxxxxxxxxxxxxxxxxxxxxxxx
#EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=1234567,RESOLUTION=848x480,FRAME-RATE=23.974,CODECS="avc1.123456,mp4a.40.2"
https://xxxxxxxxxxxxxxxxxxxxxxxxxxxxx
#EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=1234567,RESOLUTION=848x480,FRAME-RATE=23.974,CODECS="avc1.123456,mp4a.40.2"
https://xxxxxxxxxxxxxxxxxxxxxxxxxxxxx
#EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=1234567,RESOLUTION=640x360,FRAME-RATE=23.974,CODECS="avc1.123456,mp4a.40.2"
https://xxxxxxxxxxxxxxxxxxxxxxxxxxxxx
#EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=1234567,RESOLUTION=640x360,FRAME-RATE=23.974,CODECS="avc1.123456,mp4a.40.2"
https://xxxxxxxxxxxxxxxxxxxxxxxxxxxxx
#EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=1234567,RESOLUTION=640x360,FRAME-RATE=23.974,CODECS="avc1.123456,mp4a.40.2"
https://xxxxxxxxxxxxxxxxxxxxxxxxxxxxx
#EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=1234567,RESOLUTION=428x240,FRAME-RATE=23.974,CODECS="avc1.123456,mp4a.40.2"
https://xxxxxxxxxxxxxxxxxxxxxxxxxxxxx
#EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=1234567,RESOLUTION=428x240,FRAME-RATE=23.974,CODECS="avc1.123456,mp4a.40.2"
https://xxxxxxxxxxxxxxxxxxxxxxxxxxxxx
#EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=1234567,RESOLUTION=428x240,FRAME-RATE=23.974,CODECS="avc1.123456,mp4a.40.2"
https://xxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Nicnl commented

Ok I made a pull request

#88

"It works on my end"

I'll try to pack the .exe files for those who want

If you can, that would be great and I can test it quickly using my script that pulls a bunch of shows.

Nicnl commented

Here is a packed version

anime-dl.exe

The fix is really disgusting though
And Crunchyroll seems to be changing a lot their servers and all
I have no idea how long it will last

I wish these changes for better.

Not working on my end with your packaged EXE, it's also 9708 KB vs 8418 KB of the previous version.

I get the following error printed in the console:
Could not extract the language from the URL

And this is my Error.log:

DEBUG: You have successfully set the Debugging On.
DEBUG: Arguments Provided : Namespace(input=['https://www.crunchyroll.com/that-time-i-got-reincarnated-as-a-slime/episode-23-saved-souls-780740'], language='Japanese', password=['<password>'], range='All', resolution=['1080p'], skip=False, username=['<username>'], verbose=True, version=False)
DEBUG: Operating System : Windows - 10 - 10.0.17134
DEBUG: Python Version : 2.7.15 (64bit)

And this is my PowerScript logfile form my script I run for a bunch of shows:

**********************
Windows PowerShell transcript start
Start time: 20190311181209
Username: CACHE-VM-WIN10\cayde
RunAs User: CACHE-VM-WIN10\cayde
Configuration Name: 
Machine: CACHE-VM-WIN10 (Microsoft Windows NT 10.0.17134.0)
Host Application: PowerShell.exe -noexit -command Set-Location -literalPath 'D:\Crunchyroll'
Process ID: 12168
PSVersion: 5.1.17134.590
PSEdition: Desktop
PSCompatibleVersions: 1.0, 2.0, 3.0, 4.0, 5.0, 5.1.17134.590
BuildVersion: 10.0.17134.590
CLRVersion: 4.0.30319.42000
WSManStackVersion: 3.0
PSRemotingProtocolVersion: 2.3
SerializationVersion: 1.1.0.1
**********************
Transcript started, output file is anime-dl-weekly_20190311T1812096274Z.log
Could not extract the language from the URL
**********************
Windows PowerShell transcript end
End time: 20190311181216
**********************

Nicnl commented

Ooooh shit, I know
My local working copy was not up to date and it did not have the fix for this #77

Hello @Xonshiz , how are you doing?
could you please give @Nicnl the ability to merge pull requests and release some updates?
I know you are busy, that is why I would like you to have him helping you in this project.

Nicnl commented

Ok, I repacked it with the subtitles fix

anime-dl.exe

Nicnl commented

@Abu3safeer

Let me know if it's fixed

Still not working correctly.

Console Output:

Trying to login...
Logged in successfully...
Seems like this video isn't available...
'NoneType' object has no attribute 'group'

Error Log:

DEBUG: You have successfully set the Debugging On.
DEBUG: Arguments Provided : Namespace(input=['https://www.crunchyroll.com/that-time-i-got-reincarnated-as-a-slime/episode-23-saved-souls-780740'], language='Japanese', password=['<password>'], range='All', resolution=['1080p'], skip=False, username=['<username>'], verbose=True, version=False)
DEBUG: Operating System : Windows - 10 - 10.0.17134
DEBUG: Python Version : 2.7.15 (64bit)
DEBUG: Starting new HTTPS connection (1): www.crunchyroll.com:443
DEBUG: https://www.crunchyroll.com:443 "GET //login HTTP/1.1" 301 None
DEBUG: https://www.crunchyroll.com:443 "GET /login HTTP/1.1" 200 None
DEBUG: https://www.crunchyroll.com:443 "POST //login HTTP/1.1" 301 None
DEBUG: https://www.crunchyroll.com:443 "GET /login HTTP/1.1" 200 None
DEBUG: https://www.crunchyroll.com:443 "GET /that-time-i-got-reincarnated-as-a-slime/episode-23-saved-souls-780740 HTTP/1.1" 200 None
DEBUG: video_id : 780740
DEBUG: info_url : http://www.crunchyroll.com/xml/?req=RpcApiVideoPlayer_GetStandardConfig&media_id=780740&video_format=108&video_quality=80&current_page=https://www.crunchyroll.com/that-time-i-got-reincarnated-as-a-slime/episode-23-saved-souls-780740
DEBUG: Starting new HTTP connection (1): www.crunchyroll.com:80
DEBUG: http://www.crunchyroll.com:80 "GET /xml/?req=RpcApiVideoPlayer_GetStandardConfig&media_id=780740&video_format=108&video_quality=80&current_page=https://www.crunchyroll.com/that-time-i-got-reincarnated-as-a-slime/episode-23-saved-souls-780740 HTTP/1.1" 301 None
DEBUG: Starting new HTTPS connection (1): www.crunchyroll.com:443
DEBUG: https://www.crunchyroll.com:443 "GET /xml/?req=RpcApiVideoPlayer_GetStandardConfig&media_id=780740&video_format=108&video_quality=80&current_page=https://www.crunchyroll.com/that-time-i-got-reincarnated-as-a-slime/episode-23-saved-souls-780740 HTTP/1.1" 200 None

Let me try it on a previous episode that I know has a 1080p video

Okay, so it errors on a different step on the previous episode that I know has 1080p video download from alst week, and the current Web Player has a 1080p version.

Console Output:

Trying to login...
Logged in successfully...
Seems like this video isn't available...
'NoneType' object has no attribute 'group'

Error.log

DEBUG: You have successfully set the Debugging On.
DEBUG: Arguments Provided : Namespace(input=['https://www.crunchyroll.com/that-time-i-got-reincarnated-as-a-slime/episode-22-conquering-the-labyrinth-780739'], language='Japanese', password=['<password>'], range='All', resolution=['1080p'], skip=False, username=['<username>'], verbose=True, version=False)
DEBUG: Operating System : Windows - 10 - 10.0.17134
DEBUG: Python Version : 2.7.15 (64bit)
DEBUG: Starting new HTTPS connection (1): www.crunchyroll.com:443
DEBUG: https://www.crunchyroll.com:443 "GET //login HTTP/1.1" 301 None
DEBUG: https://www.crunchyroll.com:443 "GET /login HTTP/1.1" 200 None
DEBUG: https://www.crunchyroll.com:443 "POST //login HTTP/1.1" 301 None
DEBUG: https://www.crunchyroll.com:443 "GET /login HTTP/1.1" 200 None
DEBUG: https://www.crunchyroll.com:443 "GET /that-time-i-got-reincarnated-as-a-slime/episode-22-conquering-the-labyrinth-780739 HTTP/1.1" 200 None
DEBUG: video_id : 780739
DEBUG: info_url : http://www.crunchyroll.com/xml/?req=RpcApiVideoPlayer_GetStandardConfig&media_id=780739&video_format=108&video_quality=80&current_page=https://www.crunchyroll.com/that-time-i-got-reincarnated-as-a-slime/episode-22-conquering-the-labyrinth-780739
DEBUG: Starting new HTTP connection (1): www.crunchyroll.com:80
DEBUG: http://www.crunchyroll.com:80 "GET /xml/?req=RpcApiVideoPlayer_GetStandardConfig&media_id=780739&video_format=108&video_quality=80&current_page=https://www.crunchyroll.com/that-time-i-got-reincarnated-as-a-slime/episode-22-conquering-the-labyrinth-780739 HTTP/1.1" 301 None
DEBUG: Starting new HTTPS connection (1): www.crunchyroll.com:443
DEBUG: https://www.crunchyroll.com:443 "GET /xml/?req=RpcApiVideoPlayer_GetStandardConfig&media_id=780739&video_format=108&video_quality=80&current_page=https://www.crunchyroll.com/that-time-i-got-reincarnated-as-a-slime/episode-22-conquering-the-labyrinth-780739 HTTP/1.1" 200 None
DEBUG: m3u8_file_link : https://dl.v.vrv.co/evs/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
DEBUG: anime_name : That Time I Got Reincarnated As A Slime
DEBUG: episode_number : 22
DEBUG: video_resolution : 1920x1080
DEBUG: file_name : That Time I Got Reincarnated As A Slime - 22 [1920x1080].mp4
DEBUG: 
----- Subs Downloading Started -----

DEBUG: Starting new HTTP connection (1): www.crunchyroll.com:80
DEBUG: http://www.crunchyroll.com:80 "GET /xml/?req=RpcApiSubtitle_GetXml&subtitle_script_id=346456 HTTP/1.1" 301 None
DEBUG: Starting new HTTPS connection (1): www.crunchyroll.com:443
DEBUG: https://www.crunchyroll.com:443 "GET /xml/?req=RpcApiSubtitle_GetXml&subtitle_script_id=346456 HTTP/1.1" 200 None
DEBUG: iv : cGqnD3qH5pA85GgjaR9ybA==
DEBUG: http://www.crunchyroll.com:80 "GET /xml/?req=RpcApiSubtitle_GetXml&subtitle_script_id=346446 HTTP/1.1" 301 None
DEBUG: https://www.crunchyroll.com:443 "GET /xml/?req=RpcApiSubtitle_GetXml&subtitle_script_id=346446 HTTP/1.1" 200 None
DEBUG: iv : XGhMLxt5jqLy14BIvldV7Q==
DEBUG: http://www.crunchyroll.com:80 "GET /xml/?req=RpcApiSubtitle_GetXml&subtitle_script_id=346445 HTTP/1.1" 301 None
DEBUG: https://www.crunchyroll.com:443 "GET /xml/?req=RpcApiSubtitle_GetXml&subtitle_script_id=346445 HTTP/1.1" 200 None
DEBUG: iv : S1qxpHAjGKvdG44pc9TacA==
DEBUG: http://www.crunchyroll.com:80 "GET /xml/?req=RpcApiSubtitle_GetXml&subtitle_script_id=346458 HTTP/1.1" 301 None
DEBUG: https://www.crunchyroll.com:443 "GET /xml/?req=RpcApiSubtitle_GetXml&subtitle_script_id=346458 HTTP/1.1" 200 None
DEBUG: iv : xphB7mSXYscFYzbPeQhHYQ==
DEBUG: http://www.crunchyroll.com:80 "GET /xml/?req=RpcApiSubtitle_GetXml&subtitle_script_id=346435 HTTP/1.1" 301 None
DEBUG: https://www.crunchyroll.com:443 "GET /xml/?req=RpcApiSubtitle_GetXml&subtitle_script_id=346435 HTTP/1.1" 200 None
DEBUG: iv : jVwhlRnbsjiSYXNIgQt1Vg==
DEBUG: http://www.crunchyroll.com:80 "GET /xml/?req=RpcApiSubtitle_GetXml&subtitle_script_id=346477 HTTP/1.1" 301 None
DEBUG: https://www.crunchyroll.com:443 "GET /xml/?req=RpcApiSubtitle_GetXml&subtitle_script_id=346477 HTTP/1.1" 200 None
DEBUG: iv : nM1PKkAtT9VOczfrZ2q0Ow==
DEBUG: http://www.crunchyroll.com:80 "GET /xml/?req=RpcApiSubtitle_GetXml&subtitle_script_id=346460 HTTP/1.1" 301 None
DEBUG: https://www.crunchyroll.com:443 "GET /xml/?req=RpcApiSubtitle_GetXml&subtitle_script_id=346460 HTTP/1.1" 200 None
DEBUG: iv : qDFFDoFW49uRZTP7+umQgw==
DEBUG: http://www.crunchyroll.com:80 "GET /xml/?req=RpcApiSubtitle_GetXml&subtitle_script_id=346461 HTTP/1.1" 301 None
DEBUG: https://www.crunchyroll.com:443 "GET /xml/?req=RpcApiSubtitle_GetXml&subtitle_script_id=346461 HTTP/1.1" 200 None
DEBUG: iv : fuzngPBFOsrwudSNmCbEzA==
DEBUG: http://www.crunchyroll.com:80 "GET /xml/?req=RpcApiSubtitle_GetXml&subtitle_script_id=346963 HTTP/1.1" 301 None
DEBUG: https://www.crunchyroll.com:443 "GET /xml/?req=RpcApiSubtitle_GetXml&subtitle_script_id=346963 HTTP/1.1" 200 None
DEBUG: iv : CJDkcBO+BUAop6Ulp8mYvg==
DEBUG: 
----- Subs Downloaded -----

DEBUG: Starting new HTTPS connection (1): dl.v.vrv.co:443
DEBUG: https://dl.v.vrv.co:443 "GET /evs/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
DEBUG: Starting new HTTPS connection (1): a-vrv.akamaized.net:443
DEBUG: https://a-vrv.akamaized.net:443 "GET /evs/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

It was not showing 1080p quality, but now it works:

General
Format                      : Matroska
Format version              : Version 4 / Version 2
File size                   : 987 MiB
Duration                    : 24 min 11 s
Overall bit rate            : 5 701 kb/s
Encoded date                : UTC 2019-03-11 18:39:17
Writing application         : mkvmerge v31.0.0 ('Dolores In A Shoestand') 64-bit
Writing library             : libebml v1.3.6 + libmatroska v1.4.9

Video
ID                          : 1
Format                      : AVC
Format/Info                 : Advanced Video Codec
Format profile              : High@L4
Format settings             : CABAC / 4 Ref Frames
Format settings, CABAC      : Yes
Format settings, ReFrames   : 4 frames
Codec ID                    : V_MPEG4/ISO/AVC
Duration                    : 24 min 10 s
Bit rate                    : 5 576 kb/s
Width                       : 1 920 pixels
Height                      : 1 080 pixels
Display aspect ratio        : 16:9
Frame rate mode             : Constant
Frame rate                  : 23.976 (24000/1001) FPS
Color space                 : YUV
Chroma subsampling          : 4:2:0
Bit depth                   : 8 bits
Scan type                   : Progressive
Bits/(Pixel*Frame)          : 0.112
Stream size                 : 964 MiB (98%)
Writing library             : x264 core 142
Encoding settings           : cabac=1 / ref=4 / deblock=1:1:1 / analyse=0x3:0x113 / me=umh / subme=8 / psy=1 / psy_rd=0.40:0.00 / mixed_ref=1 / me_range=16 / chroma_me=1 / trellis=1 / 8x8dct=1 / cqm=0 / deadzone=21,11 / fast_pskip=1 / chroma_qp_offset=-2 / threads=12 / lookahead_threads=2 / sliced_threads=0 / nr=0 / decimate=1 / interlaced=0 / bluray_compat=0 / constrained_intra=0 / bframes=3 / b_pyramid=2 / b_adapt=2 / b_bias=0 / direct=3 / weightb=1 / open_gop=0 / weightp=2 / keyint=9999999 / keyint_min=5000000 / scenecut=0 / intra_refresh=0 / rc_lookahead=50 / rc=crf / mbtree=1 / crf=15.0 / qcomp=0.60 / qpmin=0 / qpmax=69 / qpstep=4 / vbv_maxrate=8000 / vbv_bufsize=12000 / crf_max=0.0 / nal_hrd=none / filler=0 / ip_ratio=1.40 / aq=1:0.60
Default                     : Yes
Forced                      : No

Audio
ID                          : 2
Format                      : AAC LC
Format/Info                 : Advanced Audio Codec Low Complexity
Codec ID                    : A_AAC-2
Duration                    : 24 min 10 s
Bit rate                    : 128 kb/s
Channel(s)                  : 2 channels
Channel layout              : L R
Sampling rate               : 44.1 kHz
Frame rate                  : 43.066 FPS (1024 SPF)
Compression mode            : Lossy
Delay relative to video     : -83 ms
Stream size                 : 22.1 MiB (2%)
Default                     : Yes
Forced                      : No

Text #1
ID                          : 3
Format                      : ASS
Codec ID                    : S_TEXT/ASS
Codec ID/Info               : Advanced Sub Station Alpha
Duration                    : 24 min 9 s
Bit rate                    : 159 b/s
Count of elements           : 414
Compression mode            : Lossless
Stream size                 : 28.2 KiB (0%)
Title                       : English(US)
Language                    : English
Default                     : Yes
Forced                      : No

Text #2
ID                          : 4
Format                      : ASS
Codec ID                    : S_TEXT/ASS
Codec ID/Info               : Advanced Sub Station Alpha
Duration                    : 24 min 8 s
Bit rate                    : 227 b/s
Count of elements           : 451
Compression mode            : Lossless
Stream size                 : 40.2 KiB (0%)
Title                       : Deutsch
Language                    : German
Default                     : No
Forced                      : No

Text #3
ID                          : 5
Format                      : ASS
Codec ID                    : S_TEXT/ASS
Codec ID/Info               : Advanced Sub Station Alpha
Duration                    : 24 min 11 s
Bit rate                    : 120 b/s
Count of elements           : 342
Compression mode            : Lossless
Stream size                 : 21.3 KiB (0%)
Title                       : Espanol(Espana)
Language                    : Spanish
Default                     : No
Forced                      : No

Text #4
ID                          : 6
Format                      : ASS
Codec ID                    : S_TEXT/ASS
Codec ID/Info               : Advanced Sub Station Alpha
Duration                    : 24 min 11 s
Bit rate                    : 119 b/s
Count of elements           : 342
Compression mode            : Lossless
Stream size                 : 21.2 KiB (0%)
Title                       : Espanol
Language                    : Spanish
Default                     : No
Forced                      : No

Text #5
ID                          : 7
Format                      : ASS
Codec ID                    : S_TEXT/ASS
Codec ID/Info               : Advanced Sub Station Alpha
Duration                    : 24 min 8 s
Bit rate                    : 150 b/s
Count of elements           : 359
Compression mode            : Lossless
Stream size                 : 26.6 KiB (0%)
Title                       : Francais(France)
Language                    : French
Default                     : No
Forced                      : No

Text #6
ID                          : 8
Format                      : ASS
Codec ID                    : S_TEXT/ASS
Codec ID/Info               : Advanced Sub Station Alpha
Duration                    : 24 min 9 s
Bit rate                    : 155 b/s
Count of elements           : 376
Compression mode            : Lossless
Stream size                 : 27.5 KiB (0%)
Title                       : Italiano
Language                    : Italian
Default                     : No
Forced                      : No

Text #7
ID                          : 9
Format                      : ASS
Codec ID                    : S_TEXT/ASS
Codec ID/Info               : Advanced Sub Station Alpha
Duration                    : 24 min 9 s
Bit rate                    : 165 b/s
Count of elements           : 412
Compression mode            : Lossless
Stream size                 : 29.3 KiB (0%)
Title                       : Portugues(Brasil)
Language                    : Portuguese
Default                     : No
Forced                      : No

Text #8
ID                          : 10
Format                      : ASS
Codec ID                    : S_TEXT/ASS
Codec ID/Info               : Advanced Sub Station Alpha
Duration                    : 24 min 8 s
Bit rate                    : 197 b/s
Count of elements           : 410
Compression mode            : Lossless
Stream size                 : 34.9 KiB (0%)
Title                       : und
Default                     : No
Forced                      : No

Nicnl commented

:[

Sorry @axipher, I have no idea what's happening...

I was searching and trying things to reproduce your issue without any luck

And now that it works with Abu3safeer, I'm completely lost

@Abu3safeer what show/episode was the one you ahve that works? I can try that on my end.

Alternatively, can you try episode 22 of "That Time I Got Reincarnated As A Slime":

https://www.crunchyroll.com/that-time-i-got-reincarnated-as-a-slime/episode-22-conquering-the-labyrinth-780739

This is the full command I'm running:

.\anime-dl.exe -v -i https://www.crunchyroll.com/that-time-i-got-reincarnated-as-a-slime/episode-22-conquering-the-labyrinth-780739 -u <username> -p <password> -r 1080p
Nicnl commented

@axipher

I removed my entire local copy, redownloaded the dependencies, reapplied the patch and tried making a "cleaner" build

anime-dl.exe

Sorry for making you go though all this...

@Nicnl Still same error, tried on a completely different show. If I remove the "-r 1080p" it oddly enough tries to pull 720p version on the second pass

Console Command and log:

PS D:\Crunchyroll> .\anime-dl.exe -v -i https://www.crunchyroll.com/sword-art-online/episode-1
9-the-seal-of-the-right-eye-781426 -u <username> -p <password> -r 1080p
Trying to login...
Logged in successfully...
Downloading Sword Art Online Alicization - 19 [1920x1080].enUS.ass ...
Downloading Sword Art Online Alicization - 19 [1920x1080].esLA.ass ...
Downloading Sword Art Online Alicization - 19 [1920x1080].ptBR.ass ...
Could not find the requested resolution Sword Art Online Alicization - 19 [1920x1080].mp4 in the m3u8 file

PS D:\Crunchyroll> .\anime-dl.exe -v -i https://www.crunchyroll.com/sword-art-online/episode-1
9-the-seal-of-the-right-eye-781426 -u <username> -p <password>
Trying to login...
Logged in successfully...
Downloading Sword Art Online Alicization - 19 [1280x720].enUS.ass ...
Downloading Sword Art Online Alicization - 19 [1280x720].esLA.ass ...
Downloading Sword Art Online Alicization - 19 [1280x720].ptBR.ass ...
Could not find the requested resolution Sword Art Online Alicization - 19 [1280x720].mp4 in the m3u8 file

Error Log:

DEBUG: You have successfully set the Debugging On.
DEBUG: Arguments Provided : Namespace(input=['https://www.crunchyroll.com/sword-art-online/episode-19-the-seal-of-the-right-eye-781426'], language='Japanese', password=['<password>'], range='All', resolution=['1080p'], skip=False, username=['<username>'], verbose=True, version=False)
DEBUG: Operating System : Windows - 10 - 10.0.17134
DEBUG: Python Version : 2.7.15 (64bit)
DEBUG: Starting new HTTPS connection (1): www.crunchyroll.com:443
DEBUG: https://www.crunchyroll.com:443 "GET //login HTTP/1.1" 301 None
DEBUG: https://www.crunchyroll.com:443 "GET /login HTTP/1.1" 200 None
DEBUG: https://www.crunchyroll.com:443 "POST //login HTTP/1.1" 301 None
DEBUG: https://www.crunchyroll.com:443 "GET /login HTTP/1.1" 200 None
DEBUG: https://www.crunchyroll.com:443 "GET /sword-art-online/episode-19-the-seal-of-the-right-eye-781426 HTTP/1.1" 200 None
DEBUG: video_id : 781426
DEBUG: info_url : http://www.crunchyroll.com/xml/?req=RpcApiVideoPlayer_GetStandardConfig&media_id=781426&video_format=108&video_quality=80&current_page=https://www.crunchyroll.com/sword-art-online/episode-19-the-seal-of-the-right-eye-781426
DEBUG: Starting new HTTP connection (1): www.crunchyroll.com:80
DEBUG: http://www.crunchyroll.com:80 "GET /xml/?req=RpcApiVideoPlayer_GetStandardConfig&media_id=781426&video_format=108&video_quality=80&current_page=https://www.crunchyroll.com/sword-art-online/episode-19-the-seal-of-the-right-eye-781426 HTTP/1.1" 301 None
DEBUG: Starting new HTTPS connection (1): www.crunchyroll.com:443
DEBUG: https://www.crunchyroll.com:443 "GET /xml/?req=RpcApiVideoPlayer_GetStandardConfig&media_id=781426&video_format=108&video_quality=80&current_page=https://www.crunchyroll.com/sword-art-online/episode-19-the-seal-of-the-right-eye-781426 HTTP/1.1" 200 None
DEBUG: m3u8_file_link : https://dl.v.vrv.co/evs/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
DEBUG: anime_name : Sword Art Online Alicization
DEBUG: episode_number : 19
DEBUG: video_resolution : 1920x1080
DEBUG: file_name : Sword Art Online Alicization - 19 [1920x1080].mp4
DEBUG: 
----- Subs Downloading Started -----

DEBUG: Starting new HTTP connection (1): www.crunchyroll.com:80
DEBUG: http://www.crunchyroll.com:80 "GET /xml/?req=RpcApiSubtitle_GetXml&subtitle_script_id=345923 HTTP/1.1" 301 None
DEBUG: Starting new HTTPS connection (1): www.crunchyroll.com:443
DEBUG: https://www.crunchyroll.com:443 "GET /xml/?req=RpcApiSubtitle_GetXml&subtitle_script_id=345923 HTTP/1.1" 200 None
DEBUG: iv : tUgmcIdHjiuXFoo4W/aptg==
DEBUG: http://www.crunchyroll.com:80 "GET /xml/?req=RpcApiSubtitle_GetXml&subtitle_script_id=345890 HTTP/1.1" 301 None
DEBUG: https://www.crunchyroll.com:443 "GET /xml/?req=RpcApiSubtitle_GetXml&subtitle_script_id=345890 HTTP/1.1" 200 None
DEBUG: iv : huiy7xc2n6tN9x1ATgzKpg==
DEBUG: http://www.crunchyroll.com:80 "GET /xml/?req=RpcApiSubtitle_GetXml&subtitle_script_id=345942 HTTP/1.1" 301 None
DEBUG: https://www.crunchyroll.com:443 "GET /xml/?req=RpcApiSubtitle_GetXml&subtitle_script_id=345942 HTTP/1.1" 200 None
DEBUG: iv : /8+p9JIX9eiXh08VsnU1Xw==
DEBUG: 
----- Subs Downloaded -----

DEBUG: Starting new HTTPS connection (1): dl.v.vrv.co:443
DEBUG: https://dl.v.vrv.co:443 "GET /evs/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
DEBUG: Starting new HTTPS connection (1): a-vrv.akamaized.net:443
DEBUG: https://a-vrv.akamaized.net:443 "GET /evs/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx











DEBUG: You have successfully set the Debugging On.
DEBUG: Arguments Provided : Namespace(input=['https://www.crunchyroll.com/sword-art-online/episode-19-the-seal-of-the-right-eye-781426'], language='Japanese', password=['<password>'], range='All', resolution='720p', skip=False, username=['<username>'], verbose=True, version=False)
DEBUG: Operating System : Windows - 10 - 10.0.17134
DEBUG: Python Version : 2.7.15 (64bit)
DEBUG: Starting new HTTPS connection (1): www.crunchyroll.com:443
DEBUG: https://www.crunchyroll.com:443 "GET //login HTTP/1.1" 301 None
DEBUG: https://www.crunchyroll.com:443 "GET /login HTTP/1.1" 200 None
DEBUG: https://www.crunchyroll.com:443 "POST //login HTTP/1.1" 301 None
DEBUG: https://www.crunchyroll.com:443 "GET /login HTTP/1.1" 200 None
DEBUG: https://www.crunchyroll.com:443 "GET /sword-art-online/episode-19-the-seal-of-the-right-eye-781426 HTTP/1.1" 200 None
DEBUG: video_id : 781426
DEBUG: info_url : http://www.crunchyroll.com/xml/?req=RpcApiVideoPlayer_GetStandardConfig&media_id=781426&video_format=106&video_quality=62&current_page=https://www.crunchyroll.com/sword-art-online/episode-19-the-seal-of-the-right-eye-781426
DEBUG: Starting new HTTP connection (1): www.crunchyroll.com:80
DEBUG: http://www.crunchyroll.com:80 "GET /xml/?req=RpcApiVideoPlayer_GetStandardConfig&media_id=781426&video_format=106&video_quality=62&current_page=https://www.crunchyroll.com/sword-art-online/episode-19-the-seal-of-the-right-eye-781426 HTTP/1.1" 301 None
DEBUG: Starting new HTTPS connection (1): www.crunchyroll.com:443
DEBUG: https://www.crunchyroll.com:443 "GET /xml/?req=RpcApiVideoPlayer_GetStandardConfig&media_id=781426&video_format=106&video_quality=62&current_page=https://www.crunchyroll.com/sword-art-online/episode-19-the-seal-of-the-right-eye-781426 HTTP/1.1" 200 None
DEBUG: m3u8_file_link : https://dl.v.vrv.co/evs/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
DEBUG: anime_name : Sword Art Online Alicization
DEBUG: episode_number : 19
DEBUG: video_resolution : 1280x720
DEBUG: file_name : Sword Art Online Alicization - 19 [1280x720].mp4
DEBUG: 
----- Subs Downloading Started -----

DEBUG: Starting new HTTP connection (1): www.crunchyroll.com:80
DEBUG: http://www.crunchyroll.com:80 "GET /xml/?req=RpcApiSubtitle_GetXml&subtitle_script_id=345923 HTTP/1.1" 301 None
DEBUG: Starting new HTTPS connection (1): www.crunchyroll.com:443
DEBUG: https://www.crunchyroll.com:443 "GET /xml/?req=RpcApiSubtitle_GetXml&subtitle_script_id=345923 HTTP/1.1" 200 None
DEBUG: iv : g6J9V1p+3k3Qe1Pk5ckUjw==
DEBUG: http://www.crunchyroll.com:80 "GET /xml/?req=RpcApiSubtitle_GetXml&subtitle_script_id=345890 HTTP/1.1" 301 None
DEBUG: https://www.crunchyroll.com:443 "GET /xml/?req=RpcApiSubtitle_GetXml&subtitle_script_id=345890 HTTP/1.1" 200 None
DEBUG: iv : YMztsVim4Ca3WvPsn1rdrw==
DEBUG: http://www.crunchyroll.com:80 "GET /xml/?req=RpcApiSubtitle_GetXml&subtitle_script_id=345942 HTTP/1.1" 301 None
DEBUG: https://www.crunchyroll.com:443 "GET /xml/?req=RpcApiSubtitle_GetXml&subtitle_script_id=345942 HTTP/1.1" 200 None
DEBUG: iv : ++jJVNvXLQQCLwhtEh0/QQ==
DEBUG: 
----- Subs Downloaded -----

DEBUG: Starting new HTTPS connection (1): dl.v.vrv.co:443
DEBUG: https://dl.v.vrv.co:443 "GET /evs/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
DEBUG: Starting new HTTPS connection (1): a-vrv.akamaized.net:443
DEBUG: https://a-vrv.akamaized.net:443 "GET /evs/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

Nicnl commented

If you omit the -r argument, a default value of 720p is used:

parser.add_argument('-r', '--resolution', nargs=1, help='Inputs the URL to anime.', default='720p')

So, that's not really an odd behaviour

What's odd is that, for some reason, the 1080p video is missing from the downloaded master.m3u8 file

I would just advise you to edit the error logs you pasted
Especially those lines:

  • DEBUG: m3u8_file_link : https://dl.v.vrv.co/evs/xxxxxxxxxxxxxxxxxxxxxxxx
  • DEBUG: https://dl.v.vrv.co:443 "GET /evs/xxxxxxxxxxxxxxxxxxxx
  • DEBUG: https://a-vrv.akamaized.net:443 "GET /evs/xxxxxxxxxxxxxxxxxx

Those URLs contains private tokens

Sorry, I permitted myself to download two of them, notably the slime and sword art online

After stripping them of any important data, here what they looks like

This one is the slime I think

#EXTM3U
#EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=1234567,RESOLUTION=848x480,FRAME-RATE=23.974,CODECS="avc1.123456,mp4a.40.2"
https://xxxxxxxxxxxxxxxxxxxxxxx
#EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=1234567,RESOLUTION=848x480,FRAME-RATE=23.974,CODECS="avc1.123456,mp4a.40.2"
https://xxxxxxxxxxxxxxxxxxxxxxx
#EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=1234567,RESOLUTION=848x480,FRAME-RATE=23.974,CODECS="avc1.123456,mp4a.40.2"
https://xxxxxxxxxxxxxxxxxxxxxxx
#EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=1234567,RESOLUTION=640x360,FRAME-RATE=23.974,CODECS="avc1.123456,mp4a.40.2"
https://xxxxxxxxxxxxxxxxxxxxxxx
#EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=1234567,RESOLUTION=640x360,FRAME-RATE=23.974,CODECS="avc1.123456,mp4a.40.2"
https://xxxxxxxxxxxxxxxxxxxxxxx
#EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=1234567,RESOLUTION=640x360,FRAME-RATE=23.974,CODECS="avc1.123456,mp4a.40.2"
https://xxxxxxxxxxxxxxxxxxxxxxx
#EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=1234567,RESOLUTION=428x240,FRAME-RATE=23.974,CODECS="avc1.123456,mp4a.40.2"
https://xxxxxxxxxxxxxxxxxxxxxxx
#EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=1234567,RESOLUTION=428x240,FRAME-RATE=23.974,CODECS="avc1.123456,mp4a.40.2"
https://xxxxxxxxxxxxxxxxxxxxxxx
#EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=1234567,RESOLUTION=428x240,FRAME-RATE=23.974,CODECS="avc1.123456,mp4a.40.2"
https://xxxxxxxxxxxxxxxxxxxxxxx

There's only: 240p, 360p and 480p

And this one the SAO

#EXTM3U
#EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=1234567,RESOLUTION=848x480,FRAME-RATE=23.974,CODECS="avc1.123456,mp4a.40.2"
https://xxxxxxxxxxxxxxxxxxxxxxx
#EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=1234567,RESOLUTION=640x360,FRAME-RATE=23.974,CODECS="avc1.123456,mp4a.40.2"
https://xxxxxxxxxxxxxxxxxxxxxxx
#EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=1234567,RESOLUTION=428x240,FRAME-RATE=23.974,CODECS="avc1.123456,mp4a.40.2"
https://xxxxxxxxxxxxxxxxxxxxxxx

Again, there's only 240p, 360p and 480p

I have no idea why you don't have a better video quality, maybe crunchyroll treats users differently depending on the country?

Can confirm.

@Nicnl Thanks for the tip on the private keys. Also normally I do get 1080p of everything in Canada. I wonder if Crunchyroll is just making some weird changes to stuff. Not sure what else I can provide you to help out here.

@axipher do you have premium account? do you use it in the command?
since @Nicnl said you only had 480p it means you don't have premium account, since free accounts only have 480p as highest quality.

Nicnl commented

Yeah, now that I think of it
When I was tinkering with the code two month ago, I stumbled the part that handles the login

And... uh... it doesn't check if you're actually connected or not
Whatever the login you enter are, it will always write "login successful"

So if you enter wrong credentials, it will show login successful BUT you won't be able to download 1080p shows or get the exclusive episode of the week

So, uh, @axipher, maybe you could triple check your account status and credentials?
Or if you changed your password recently, have you used special characters such as %, %, , etc?
The windows terminal don't like some of them when they're not escaped properly

Nicnl commented

@basuritashka

This is an experimental patch for the 1080p download resolution issue

  • anime-dl.exe

If you could try it out and tell if it works, it'd be great!

Wiered, this is from the experimental patch!

image

Nicnl commented

What
This is the same as before, I just copy pasted it and mentioned the guy so that he receive a notification

What are your logs?

It worked now 😐

image

Nicnl commented

Uuuuh...
Please stop doing voodoo magic while using anime-dl, it's not compatible, lol...

I have no idea how that happened, it might used the anime-dl on the PATH, thought I have anime-dl.exe in the same script directory!
should I try to download an entire show?

@Nicnl I tried your most updated version of the exe in this thread, still getting the video not found issue. All the subs download fine and it seems to want to grab the 1080p version and does the subs fine, just not the video file.

For a little more background, I am running this from Powershell on Windows 10 Pro, anime-dl.exe is in the same directory, the script has been working for months now automatically at 1PM each day, I do have an active premium account as I was able to watch the 1080p versions of these two shows last night in the Web Player at 1080p.

Console Commands and Output:

PS D:\Crunchyroll> .\anime-dl.exe -v -i https://www.crunchyroll.com/sword-art-online/episode-1
9-the-seal-of-the-right-eye-781426 -u <username> -p <password> -r 1080p
Trying to login...
Logged in successfully...
Downloading Sword Art Online Alicization - 19 [1920x1080].enUS.ass ...
Downloading Sword Art Online Alicization - 19 [1920x1080].esLA.ass ...
Downloading Sword Art Online Alicization - 19 [1920x1080].ptBR.ass ...
Could not find the requested resolution Sword Art Online Alicization - 19 [1920x1080].mp4 in the m3u8 file

PS D:\Crunchyroll> .\anime-dl.exe -v -i https://www.crunchyroll.com/that-time-i-got-reincarnat
ed-as-a-slime/episode-22-conquering-the-labyrinth-780739 -u <username> -p <password> -r
1080p
Trying to login...
Logged in successfully...
Downloading That Time I Got Reincarnated As A Slime - 22 [1920x1080].enUS.ass ...
Downloading That Time I Got Reincarnated As A Slime - 22 [1920x1080].esLA.ass ...
Downloading That Time I Got Reincarnated As A Slime - 22 [1920x1080].esES.ass ...
Downloading That Time I Got Reincarnated As A Slime - 22 [1920x1080].frFR.ass ...
Downloading That Time I Got Reincarnated As A Slime - 22 [1920x1080].ptBR.ass ...
Downloading That Time I Got Reincarnated As A Slime - 22 [1920x1080].arME.ass ...
Downloading That Time I Got Reincarnated As A Slime - 22 [1920x1080].itIT.ass ...
Downloading That Time I Got Reincarnated As A Slime - 22 [1920x1080].deDE.ass ...
Downloading That Time I Got Reincarnated As A Slime - 22 [1920x1080].ruRU.ass ...
Could not find the requested resolution That Time I Got Reincarnated As A Slime - 22 [1920x1080].mp4 in the m3u8 file

Error.log

DEBUG: You have successfully set the Debugging On.
DEBUG: Arguments Provided : Namespace(input=['https://www.crunchyroll.com/sword-art-online/episode-19-the-seal-of-the-right-eye-781426'], language='Japanese', password=['<password>'], range='All', resolution=['1080p'], skip=False, username=['<username>'], verbose=True, version=False)
DEBUG: Operating System : Windows - 10 - 10.0.17134
DEBUG: Python Version : 2.7.15 (64bit)
DEBUG: Starting new HTTPS connection (1): www.crunchyroll.com:443
DEBUG: https://www.crunchyroll.com:443 "GET //login HTTP/1.1" 301 None
DEBUG: https://www.crunchyroll.com:443 "GET /login HTTP/1.1" 200 None
DEBUG: https://www.crunchyroll.com:443 "POST //login HTTP/1.1" 301 None
DEBUG: https://www.crunchyroll.com:443 "GET /login HTTP/1.1" 200 None
DEBUG: https://www.crunchyroll.com:443 "GET /sword-art-online/episode-19-the-seal-of-the-right-eye-781426 HTTP/1.1" 200 None
DEBUG: video_id : 781426
DEBUG: info_url : http://www.crunchyroll.com/xml/?req=RpcApiVideoPlayer_GetStandardConfig&media_id=781426&video_format=108&video_quality=80&current_page=https://www.crunchyroll.com/sword-art-online/episode-19-the-seal-of-the-right-eye-781426
DEBUG: Starting new HTTP connection (1): www.crunchyroll.com:80
DEBUG: http://www.crunchyroll.com:80 "GET /xml/?req=RpcApiVideoPlayer_GetStandardConfig&media_id=781426&video_format=108&video_quality=80&current_page=https://www.crunchyroll.com/sword-art-online/episode-19-the-seal-of-the-right-eye-781426 HTTP/1.1" 301 None
DEBUG: Starting new HTTPS connection (1): www.crunchyroll.com:443
DEBUG: https://www.crunchyroll.com:443 "GET /xml/?req=RpcApiVideoPlayer_GetStandardConfig&media_id=781426&video_format=108&video_quality=80&current_page=https://www.crunchyroll.com/sword-art-online/episode-19-the-seal-of-the-right-eye-781426 HTTP/1.1" 200 None
DEBUG: m3u8_file_link : https://dl.v.vrv.co/evs/xxxxxxxxxxxxxxxxxx
DEBUG: anime_name : Sword Art Online Alicization
DEBUG: episode_number : 19
DEBUG: video_resolution : 1920x1080
DEBUG: file_name : Sword Art Online Alicization - 19 [1920x1080].mp4
DEBUG: 
----- Subs Downloading Started -----

DEBUG: Starting new HTTP connection (1): www.crunchyroll.com:80
DEBUG: http://www.crunchyroll.com:80 "GET /xml/?req=RpcApiSubtitle_GetXml&subtitle_script_id=345923 HTTP/1.1" 301 None
DEBUG: Starting new HTTPS connection (1): www.crunchyroll.com:443
DEBUG: https://www.crunchyroll.com:443 "GET /xml/?req=RpcApiSubtitle_GetXml&subtitle_script_id=345923 HTTP/1.1" 200 None
DEBUG: iv : s45unGcxUWiI+5UgFFUgwg==
DEBUG: http://www.crunchyroll.com:80 "GET /xml/?req=RpcApiSubtitle_GetXml&subtitle_script_id=345890 HTTP/1.1" 301 None
DEBUG: https://www.crunchyroll.com:443 "GET /xml/?req=RpcApiSubtitle_GetXml&subtitle_script_id=345890 HTTP/1.1" 200 None
DEBUG: iv : UDI9sH86RRyDjH9U/a8hzw==
DEBUG: http://www.crunchyroll.com:80 "GET /xml/?req=RpcApiSubtitle_GetXml&subtitle_script_id=345942 HTTP/1.1" 301 None
DEBUG: https://www.crunchyroll.com:443 "GET /xml/?req=RpcApiSubtitle_GetXml&subtitle_script_id=345942 HTTP/1.1" 200 None
DEBUG: iv : e+reDTDiuAdI2j+BDAb1Jg==
DEBUG: 
----- Subs Downloaded -----

DEBUG: Starting new HTTPS connection (1): dl.v.vrv.co:443
DEBUG: https://dl.v.vrv.co:443 "GET /evs/xxxxxxxxxxxxxxxxxx
DEBUG: Starting new HTTPS connection (1): a-vrv.akamaized.net:443
DEBUG: https://a-vrv.akamaized.net:443 "GET /evs/xxxxxxxxxxxxxxxxxx














DEBUG: You have successfully set the Debugging On.
DEBUG: Arguments Provided : Namespace(input=['https://www.crunchyroll.com/that-time-i-got-reincarnated-as-a-slime/episode-22-conquering-the-labyrinth-780739'], language='Japanese', password=['<password>'], range='All', resolution=['1080p'], skip=False, username=['<username>'], verbose=True, version=False)
DEBUG: Operating System : Windows - 10 - 10.0.17134
DEBUG: Python Version : 2.7.15 (64bit)
DEBUG: Starting new HTTPS connection (1): www.crunchyroll.com:443
DEBUG: https://www.crunchyroll.com:443 "GET //login HTTP/1.1" 301 None
DEBUG: https://www.crunchyroll.com:443 "GET /login HTTP/1.1" 200 None
DEBUG: https://www.crunchyroll.com:443 "POST //login HTTP/1.1" 301 None
DEBUG: https://www.crunchyroll.com:443 "GET /login HTTP/1.1" 200 None
DEBUG: https://www.crunchyroll.com:443 "GET /that-time-i-got-reincarnated-as-a-slime/episode-22-conquering-the-labyrinth-780739 HTTP/1.1" 200 None
DEBUG: video_id : 780739
DEBUG: info_url : http://www.crunchyroll.com/xml/?req=RpcApiVideoPlayer_GetStandardConfig&media_id=780739&video_format=108&video_quality=80&current_page=https://www.crunchyroll.com/that-time-i-got-reincarnated-as-a-slime/episode-22-conquering-the-labyrinth-780739
DEBUG: Starting new HTTP connection (1): www.crunchyroll.com:80
DEBUG: http://www.crunchyroll.com:80 "GET /xml/?req=RpcApiVideoPlayer_GetStandardConfig&media_id=780739&video_format=108&video_quality=80&current_page=https://www.crunchyroll.com/that-time-i-got-reincarnated-as-a-slime/episode-22-conquering-the-labyrinth-780739 HTTP/1.1" 301 None
DEBUG: Starting new HTTPS connection (1): www.crunchyroll.com:443
DEBUG: https://www.crunchyroll.com:443 "GET /xml/?req=RpcApiVideoPlayer_GetStandardConfig&media_id=780739&video_format=108&video_quality=80&current_page=https://www.crunchyroll.com/that-time-i-got-reincarnated-as-a-slime/episode-22-conquering-the-labyrinth-780739 HTTP/1.1" 200 None
DEBUG: m3u8_file_link : https://dl.v.vrv.co/evs/xxxxxxxxxxxxxxxxxx
DEBUG: anime_name : That Time I Got Reincarnated As A Slime
DEBUG: episode_number : 22
DEBUG: video_resolution : 1920x1080
DEBUG: file_name : That Time I Got Reincarnated As A Slime - 22 [1920x1080].mp4
DEBUG: 
----- Subs Downloading Started -----

DEBUG: Starting new HTTP connection (1): www.crunchyroll.com:80
DEBUG: http://www.crunchyroll.com:80 "GET /xml/?req=RpcApiSubtitle_GetXml&subtitle_script_id=346456 HTTP/1.1" 301 None
DEBUG: Starting new HTTPS connection (1): www.crunchyroll.com:443
DEBUG: https://www.crunchyroll.com:443 "GET /xml/?req=RpcApiSubtitle_GetXml&subtitle_script_id=346456 HTTP/1.1" 200 None
DEBUG: iv : xUm6ytrSs0QA/PFYH0cZbQ==
DEBUG: http://www.crunchyroll.com:80 "GET /xml/?req=RpcApiSubtitle_GetXml&subtitle_script_id=346446 HTTP/1.1" 301 None
DEBUG: https://www.crunchyroll.com:443 "GET /xml/?req=RpcApiSubtitle_GetXml&subtitle_script_id=346446 HTTP/1.1" 200 None
DEBUG: iv : 13DK5TjsPan2Uh2zKzV9Gw==
DEBUG: http://www.crunchyroll.com:80 "GET /xml/?req=RpcApiSubtitle_GetXml&subtitle_script_id=346445 HTTP/1.1" 301 None
DEBUG: https://www.crunchyroll.com:443 "GET /xml/?req=RpcApiSubtitle_GetXml&subtitle_script_id=346445 HTTP/1.1" 200 None
DEBUG: iv : a8BD1MijOxee2SmtjqWlfA==
DEBUG: http://www.crunchyroll.com:80 "GET /xml/?req=RpcApiSubtitle_GetXml&subtitle_script_id=346458 HTTP/1.1" 301 None
DEBUG: https://www.crunchyroll.com:443 "GET /xml/?req=RpcApiSubtitle_GetXml&subtitle_script_id=346458 HTTP/1.1" 200 None
DEBUG: iv : QcywR7ndNGKTmN1EBS8TEw==
DEBUG: http://www.crunchyroll.com:80 "GET /xml/?req=RpcApiSubtitle_GetXml&subtitle_script_id=346435 HTTP/1.1" 301 None
DEBUG: https://www.crunchyroll.com:443 "GET /xml/?req=RpcApiSubtitle_GetXml&subtitle_script_id=346435 HTTP/1.1" 200 None
DEBUG: iv : qe4SSt+hCRkGUj0PF9P32A==
DEBUG: http://www.crunchyroll.com:80 "GET /xml/?req=RpcApiSubtitle_GetXml&subtitle_script_id=346477 HTTP/1.1" 301 None
DEBUG: https://www.crunchyroll.com:443 "GET /xml/?req=RpcApiSubtitle_GetXml&subtitle_script_id=346477 HTTP/1.1" 200 None
DEBUG: iv : w1m54sG1TXL7C5f1cQ3JkA==
DEBUG: http://www.crunchyroll.com:80 "GET /xml/?req=RpcApiSubtitle_GetXml&subtitle_script_id=346460 HTTP/1.1" 301 None
DEBUG: https://www.crunchyroll.com:443 "GET /xml/?req=RpcApiSubtitle_GetXml&subtitle_script_id=346460 HTTP/1.1" 200 None
DEBUG: iv : v8oPQ9/OoCcEyl6iL8aImQ==
DEBUG: http://www.crunchyroll.com:80 "GET /xml/?req=RpcApiSubtitle_GetXml&subtitle_script_id=346461 HTTP/1.1" 301 None
DEBUG: https://www.crunchyroll.com:443 "GET /xml/?req=RpcApiSubtitle_GetXml&subtitle_script_id=346461 HTTP/1.1" 200 None
DEBUG: iv : 2ucNeyvz7bpZetPXBcDpvw==
DEBUG: http://www.crunchyroll.com:80 "GET /xml/?req=RpcApiSubtitle_GetXml&subtitle_script_id=346963 HTTP/1.1" 301 None
DEBUG: https://www.crunchyroll.com:443 "GET /xml/?req=RpcApiSubtitle_GetXml&subtitle_script_id=346963 HTTP/1.1" 200 None
DEBUG: iv : DbrxEuMXChGtsYSAHCM3TQ==
DEBUG: 
----- Subs Downloaded -----

DEBUG: Starting new HTTPS connection (1): dl.v.vrv.co:443
DEBUG: https://dl.v.vrv.co:443 "GET /evs/xxxxxxxxxxxxxxxxxx
DEBUG: Starting new HTTPS connection (1): a-vrv.akamaized.net:443
DEBUG: https://a-vrv.akamaized.net:443 "GET /evs/xxxxxxxxxxxxxxxxxx

Also I just tried grabbing the m3u8 files for both those shows from the error log, and for some reason it's only giving 240p, 360p, and 480p still. I verified that the username and password I'm using for the command are correct by using those to login to Crunchyroll in a new browser completely. My Crunchyroll password does have a ? in it, but that hasn't been an issue previously in PowerShell. Crunchyroll account linked below to show Premium Status

https://www.crunchyroll.com/user/axipher

Nicnl commented

I see, all of this is really weird

I'm really lost because, I don't have any means of reproducing your issue
On my end, everything works well while on yours it does not

Well, listen, I've added my email address on my GitHub profile

Go to there, send me an email
If I could perform some tests and find the root if the issue, that'd be great

I think there's no point to continue clogging this thread as long as we don't have any new informations
I'll report here afterwards if I find anything

Might have found a workaround by using:
https://www.crunchyroll.com/fr/<show_name>
instead of
https://www.crunchyroll.com/<show_name>

It seems line 45 of anime-dl/anime_dl/sites/crunchyroll.py might be mistakenly setting Crunchy_Language = "/" when it should just be an empty string for the English language which doesn't add any sub-path to the CrunchyRoll URL and might be breaking the Login portion.

I sent @Nicnl some more in-depth information so him and myself can test a fix before submitting anything on here.

Hopefully the "country workaround" can help others who are using English Crunchyroll

@axipher That seems to have worked for me.

@axipher I am still unable to grab the 1080p video.
image
I tried adding the country thing as well, but it's still the same.

Error Log.log

Kept the "private token" incase you wanted to grab the file to check if it contains the resolution or not.

@aspablo I think this issue caused by (seasons).
Naruto has seasons, so the application cannot grab the episode.
try with an anime with only one season.

Tried with an airing anime episode.
image
Error Log.log

P.S. Sorry I forgot to check back. Exams are taking up my attention these days.
Thanks @Abu3safeer for looking out for me.

@aspablo is rainy cocoa available in your region?

@Abu3safeer I reset my account password. Now it detects the episode. But back to same no resolution in m3u8
image
Error Log.log
And yes. I am able to play the anime in my browser at 1080p as well.
Edit: btw, I am using the latest exe linked in this issue thread.

is your account a premium?

Yes it is

could you post the link? I would try it now.

Nicnl commented

@aspablo

I've checked your last error log

The master.m3u8 file contains the following:

#EXTM3U
#EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=xxxxxx,RESOLUTION=848x480,FRAME-RATE=23.974,CODECS="avc1.xxxxxx,mp4a.40.2"
XXXXXXXXXXXXXXXX
#EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=xxxxxx,RESOLUTION=640x360,FRAME-RATE=23.974,CODECS="avc1.xxxxxx,mp4a.40.2"
XXXXXXXXXXXXX
#EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=xxxxxx,RESOLUTION=428x240,FRAME-RATE=23.974,CODECS="avc1.xxxxxx,mp4a.40.2"
XXXXXXXXXXXXXXXXXXXX

If you're sure your account is premium, that means that there's an authentication issue

@Nicnl I am able stream on my browser though. And I get the resolution selection options as well.

Nicnl commented

Yes, but well

In the existing anime-dl, there's a big flaw concerning how the authentication is handled

Basically, the authentication is NOT checked
You can enter whatever login you want, you'll always get "Logged in succesfully", which is stupid

I've tried to fix this on a fork

@aspablo

Could you try this version?

  • anime-dl.exe

What changes in this version:

  • If the authentication fails for some reason, it'll try to spit out the error message
  • If the requested resolution is not available in the master.m3u8 file, it'll list the available resolutions

Same here, this is weird:

#EXTM3U
#EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=953424,RESOLUTION=848x480,FRAME-RATE=23.974,CODECS="avc1.4d401f,mp4a.40.2"
https://a-vrv.akamaized.net/evs/xxxx.mp4/index-v1-a1.m3u8?t=xxxx
#EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=500945,RESOLUTION=640x360,FRAME-RATE=23.974,CODECS="avc1.4d401e,mp4a.40.2"
https://a-vrv.akamaized.net/evs/xxxx.mp4/index-v1-a1.m3u8?t=xxxx
#EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=387101,RESOLUTION=428x240,FRAME-RATE=23.974,CODECS="avc1.42c015,mp4a.40.2"
https://a-vrv.akamaized.net/evs/xxxx.mp4/index-v1-a1.m3u8?t=xxxx

@Nicnl Tried the linked exe. Still same error
image
Error Log.log

Edit:

image
I can stream it fine though

Whoh, what is happening here!
image

#EXTM3U
#EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=953424,RESOLUTION=848x480,FRAME-RATE=23.974,CODECS="avc1.4d401f,mp4a.40.2"
https://a-vrv.akamaized.net/evs/xxxx.mp4/index-v1-a1.m3u8?t=xxxx
#EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=500945,RESOLUTION=640x360,FRAME-RATE=23.974,CODECS="avc1.4d401e,mp4a.40.2"
https://a-vrv.akamaized.net/evs/xxxx.mp4/index-v1-a1.m3u8?t=xxxx
#EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=387101,RESOLUTION=428x240,FRAME-RATE=23.974,CODECS="avc1.42c015,mp4a.40.2"
https://a-vrv.akamaized.net/evs/xxxx.mp4/index-v1-a1.m3u8?t=xxxx
Nicnl commented

Wait guys, there's something wrong
Maybe I've linked the wrong build, you sould have more logs than just "could not find"

The funny thing that I add /ar/ language to the link and now it works
image

How are you guys extracting the resolutions info from the m3u8 links?

@Abu3safeer lemme check

ohho ho yes.. it worked!
image
But didn't you already fix the region issue since it contained extra '/'? @Nicnl

Nicnl commented

Holy cow, I've linked the wrong exe

Since I browse crunchyroll using Arabic layout, all my links contain /ar/, so I didn't recognize this issue at first, but later I recognize it.
image

@Nicnl No problems, just link the correct one, and if you could remove the old one so if anyone tried to download the old one it will redirect him to the new one.

Oh thanks @Abu3safeer and @Nicnl
Btw, now I am able to download shippuden as well. Just had to add the /ar/ or /fr/ to the url.

Nicnl commented

Ok, this time I hope it'll work...
Very sorry for the inconvenience guys...

@Nicnl can't actually talk against you. Cuz you are making this stuff workable. Thanks man.

@Nicnl Actually I am the one who should be thankful for you, you are keeping this project alive, I really wish that I know python to help you.

This application could be more powerful that what it is.

I have even created a GUI for it using C# here:
https://github.com/Abu3safeer/anime-dl-gui

@Nicnl Thanks. The new exe works. Didn't need to add the fr/ar in url either.
Thanks and good luck to you.

It is working like a charm now, even without language written.
I wish @Xonshiz could respond and update this app with your patches.

Nicnl commented

THERE WE GO

Please note that there's still an ongoing issue I have to fix

It turns out that axipher noticed that some animes have very uncommon resolutions
For instance, Fairy Tail episode 1 is not 1920x1080..... it's 1920x1072, and it breaks everything

Downloading Fairy Tail - 02 [1920x1080].enUS.ass ...
Could not find the requested resolution [1920x1080] in the master.m3u8 file

Here are all the available resolutions: [1072p, 240p, 360p, 480p, 720p]

And right now adding -r 1072p won't work, I need to do a few changes here and there for it to work
I'll try to fix it as soon as I have a bit of time in front of me

You might do groups:
1080p = 1080p - 721p
720p = 720p - 481p
480p = 480 - 361p
360p = 360p - 0p

So the application will get all resolutions, and put them in groups, so even if the resolution is not the exact 1080p it should consider anything above 720p is 1080p.

We all appreciate the offline builds @Nicnl

Hopefully you can easily update a pull request on this main one once @Xonshiz has some time.

This might be an issue because currently, to anime-dl isn't authenticating properly. So, the token/cookies anime-dl gets aren't authorized for HD and FHD streams. I'll take a look at this, as I am re-building anime-dl.

Thanks @Xonshiz if you need testing, let me know and I'm glad to help test anything.

Sure, thanks :). Will hopefully post something in 6 hours from now.

Nicnl commented

@Xonshiz
Out of curiosity
By rebuilding, do you mean you're rewriting everything from scratch?

Still having issues on some older shows with odd resolutions, this time "Full Metal Panic" (https://www.crunchyroll.com/full-metal-panic) which has 1440x1080 as its 1080p resolution.

.\anime-dl.exe -v -i https://www.crunchyroll.com/full-metal-panic -u $username -p $password -r 1080
Trying to login...
Logged in successfully...
Total Episodes to download : 24
Downloading Full Metal Panic - 01 [1920x1080].enUS.ass ...
Could not find the requested resolution [1920x1080] in the master.m3u8 file

Here are all the available resolutions: [1080p, 240p, 360p, 480p, 720p]
-----------------------------------------------------------


Downloading Full Metal Panic - 02 [1920x1080].enUS.ass ...
Could not find the requested resolution [1920x1080] in the master.m3u8 file

Here are all the available resolutions: [1080p, 240p, 360p, 480p, 720p]
-----------------------------------------------------------


Downloading Full Metal Panic - 03 [1920x1080].enUS.ass ...
Could not find the requested resolution [1920x1080] in the master.m3u8 file

Here are all the available resolutions: [1080p, 240p, 360p, 480p, 720p]
-----------------------------------------------------------
#EXTM3U
#EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=1816763,RESOLUTION=960x720,FRAME-RATE=23.974,CODECS="avc1.64001f,mp4a.40.2"
https://a-vrv.akamaized.net/evs/xxxxxxxxxx
#EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=3691028,RESOLUTION=1440x1080,FRAME-RATE=23.974,CODECS="avc1.640028,mp4a.40.2"
https://a-vrv.akamaized.net/evs/xxxxxxxxxx
#EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=773164,RESOLUTION=640x480,FRAME-RATE=23.974,CODECS="avc1.4d401e,mp4a.40.2"
https://a-vrv.akamaized.net/evs/xxxxxxxxxx
#EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=482427,RESOLUTION=480x360,FRAME-RATE=23.974,CODECS="avc1.4d4015,mp4a.40.2"
https://a-vrv.akamaized.net/evs/xxxxxxxxxx
#EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=345414,RESOLUTION=320x240,FRAME-RATE=23.974,CODECS="avc1.42c00d,mp4a.40.2"
https://a-vrv.akamaized.net/evs/xxxxxxxxxx

And this is from "Gunbuster 2" (https://www.crunchyroll.com/gunbuster-2)

When I run the command with no resolution called out, it just fails, I need to add "-r 480p" for it to correctly grab the 480p videos

#EXTM3U
#EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=1149128,RESOLUTION=848x480,FRAME-RATE=23.974,CODECS="avc1.4d401f,mp4a.40.2"
https://a-vrv.akamaized.net/evs/
#EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=613615,RESOLUTION=640x360,FRAME-RATE=23.974,CODECS="avc1.4d401e,mp4a.40.2"
https://a-vrv.akamaized.net/evs/
#EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=440351,RESOLUTION=428x240,FRAME-RATE=23.974,CODECS="avc1.42c015,mp4a.40.2"
https://a-vrv.akamaized.net/evs/