Xonshiz / anime-dl

Anime-dl is a command-line program to download anime from CrunchyRoll and Funimation.
MIT License
229 stars 37 forks source link

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

Open axipher opened 5 years ago

axipher commented 5 years ago

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 5 years ago

I have the same problem

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

Nicnl commented 5 years ago

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

Abu3safeer commented 5 years ago

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

Nicnl commented 5 years ago

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

https://github.com/Xonshiz/anime-dl/blob/1766c1a02ec56897c789fff165c62f51a31bfedc/anime_dl/sites/crunchyroll.py#L175-L188

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:
https://github.com/Xonshiz/anime-dl/blob/1766c1a02ec56897c789fff165c62f51a31bfedc/anime_dl/sites/crunchyroll.py#L249

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 5 years ago

Ok I made a pull request

https://github.com/Xonshiz/anime-dl/pull/88

"It works on my end"

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

axipher commented 5 years ago

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

Nicnl commented 5 years ago

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

Abu3safeer commented 5 years ago

I wish these changes for better.

axipher commented 5 years ago

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 5 years ago

Ooooh shit, I know
My local working copy was not up to date and it did not have the fix for this https://github.com/Xonshiz/anime-dl/issues/77

Abu3safeer commented 5 years ago

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 5 years ago

Ok, I repacked it with the subtitles fix

anime-dl.exe

Nicnl commented 5 years ago

@Abu3safeer

Let me know if it's fixed

axipher commented 5 years ago

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
axipher commented 5 years ago

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

axipher commented 5 years ago

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
Abu3safeer commented 5 years ago

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 5 years ago

:[

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

axipher commented 5 years ago

@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 5 years ago

@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...

axipher commented 5 years ago

@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 5 years ago

If you omit the -r argument, a default value of 720p is used:
https://github.com/Xonshiz/anime-dl/blob/1766c1a02ec56897c789fff165c62f51a31bfedc/anime_dl/__main__.py#L28

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:

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?

metita commented 5 years ago

Can confirm.

axipher commented 5 years ago

@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.

Abu3safeer commented 5 years ago

@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 5 years ago

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 5 years ago

@basuritashka

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

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

Abu3safeer commented 5 years ago

Wiered, this is from the experimental patch!

image

Nicnl commented 5 years ago

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?

Abu3safeer commented 5 years ago

It worked now 😐

image

Nicnl commented 5 years ago

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

Abu3safeer commented 5 years ago

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?

axipher commented 5 years ago

@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
axipher commented 5 years ago

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 5 years ago

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

axipher commented 5 years ago

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

AuzzieAsh commented 5 years ago

@axipher That seems to have worked for me.

aspablo commented 5 years ago

@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.

Abu3safeer commented 5 years ago

@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.

aspablo commented 5 years ago

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.

Abu3safeer commented 5 years ago

@aspablo is rainy cocoa available in your region?

aspablo commented 5 years ago

@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.

Abu3safeer commented 5 years ago

is your account a premium?

aspablo commented 5 years ago

Yes it is

Abu3safeer commented 5 years ago

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

Nicnl commented 5 years ago

@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

aspablo commented 5 years ago

Episode link : https://www.crunchyroll.com/rainy-cocoa-sideg/episode-11-untitled-781026 Anime Link : https://www.crunchyroll.com/rainy-cocoa-sideg

aspablo commented 5 years ago

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

Nicnl commented 5 years ago

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?

What changes in this version:

Abu3safeer commented 5 years ago

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