pystardust / ani-cli

A cli tool to browse and play anime
GNU General Public License v3.0
7.97k stars 549 forks source link

Download half broken due to aria2c m3u8 incompatibility #567

Closed FilipLac closed 2 years ago

FilipLac commented 2 years ago

Metadata (please complete the following information) Version: v1.9.0 OS: Windows 11 Shell: Ubuntu (WSL) Anime: In the Land of Leadale

Describe the bug Downloading is broken. When I try downloading newest episode of above mentioned anime, it finishes really quickly and downloaded file has only 414B (It happened also with anime Realist Hero)

Steps To Reproduce

  1. Run ani-cli -d -q best In the Land of Leadale
  2. Choose 1 (leadale-no-daichi-nite)
  3. Choose episode 9

Expected behavior Downloaded file should have bigger size and should be playable which this one isn't.

Screenshots (if applicable)

Additional context It first started in like v1.8.0 or so and first it happened with Realist hero. Then with my dressup darling but after downloading script again my dressup darling downloaded without any issue but Realist hero still did same. Not it is doing on everything I throw at it.

CoolnsX commented 2 years ago

sometimes gogoplay gives non-vidstreamingcdn links.. which ends with playlists.m3u8 And aria2c is unable to download those links... You can stream those links though Also u can try fetching same again until u get vidstreaming link... Also if u are watching latest anime with latest episode.. then wait for it.. their vidstreaming link gets generated after some time

FilipLac commented 2 years ago

I tried fetching it multiple times throughout day and I wouldn't do anything different. Except when I tried it over mobile data using tethering. Trying it this way resulted in no internet even tho everything else in that terminal worked fine. Weird thing is that when I try playing it instead of downloading it, it works just fine but downloading it causes some issue. Is there any way to view logs or turn on verbose ?

CoolnsX commented 2 years ago

Screenshot_20220305-091946-547

It fetched vidstreamingcdn link for me.. again it's not we control.. it's entirely done by gogoserver.. so sometimes it gives u above link.. and sometimes it will give u this type of link(in your case)

Screenshot_20220305-093640-143 These type of link is unsupported by the downloader... And we getting lots and lots of these type of links.. so we are working on solution for it...

FilipLac commented 2 years ago

Could you please explain how are you getting that link to show during download ? Also is there anyway how I could parse correct link in to start download ?

71zenith commented 2 years ago

Could you please explain how are you getting that link to show during download ? Also is there anyway how I could parse correct link in to start download ?

This was in an old version. We currently don't show the links

CoolnsX commented 2 years ago

Could you please explain how are you getting that link to show during download ? Also is there anyway how I could parse correct link in to start download ?

U cannot.. links are generated by gogoserver..

port19x commented 2 years ago

@CoolnsX do we just revert to ffmpeg downloads? aria2c is generally pretty neat with it's speed tuning, but a terrible codebase and at least half dead

FilipLac commented 2 years ago

Well, since posting this about this issue. Same thing started happening on every episode I throw at it. Maybe trying ffmpeg instead aria2c could work but for now it looks like this will be unusable :/