ani-cli icon indicating copy to clipboard operation
ani-cli copied to clipboard

URL not found

Open 71zenith opened this issue 4 years ago • 56 comments

Metadata (please complete the following information) Version: ≥ v1.8.1 OS: Arch Linux Shell: dash Anime: 86

Describe the bug

Prints URL not found.

Steps To Reproduce

  1. Run ani-cli -a 10 86

Expected behavior It should play the video

Screenshots (if applicable) 12:11:03-02-03

Additional context Problem doesn't persist in 1.8.0. Camrip stuff added in v1.8.1 causes issues. Episodes other than 10 play fine

71zenith avatar Mar 02 '22 06:03 71zenith

Getting data for episode 7 
Downloading episode 7 ...\n 
Exception caught
Exception: [download_helper.cc:451] errorCode=1 Unrecognized URI or unsupported protocol: 

Download failed episode: 007 , please retry or check your internet connection
Currently playing mushoku-tensei-isekai-ittara-honki-dasu-2nd-season-dub episode 7/12
[n] next episode
[p] previous episode
[s] select episode
[r] replay current episode
[a] search for another anime
[h] search history
[q] exit
Enter choice: q

yup, not working for me aswell. download of the show dropped halfway, it was fine for first 6eps then this bug appeared at ep 7-12,

relejek avatar Mar 02 '22 10:03 relejek

@relejek it appears to me that you're using an old version of ani-cli. Some of your problems might be solved by updating. See how in the readme.

Derisis13 avatar Mar 02 '22 10:03 Derisis13

Oh, yeah. above error message was before i updated from v1.8.0 now i get same error as @71zenith on v1.8.3

relejek avatar Mar 02 '22 11:03 relejek

same error

asrvd avatar Mar 03 '22 04:03 asrvd

am also getting same issue

VG08 avatar Mar 03 '22 05:03 VG08

I get the same error with one peace...I forgot what version I was running first but it happened once on ep84 I tried it the episode several times and it eventually loaded but it didn't work for ep85 so I figured I should update but when I patched ani-cli and got to V1.8.3 now none of the episodes of one peace load. Screenshot 2022-03-03 6 11 58 AM

parsivan avatar Mar 03 '22 05:03 parsivan

I think this needs immediate attention and priority. the website works fine and the episodes load fine there.

parsivan avatar Mar 03 '22 05:03 parsivan

Yeah, I'm getting the same Video URL not found error for every video.

noangst avatar Mar 03 '22 05:03 noangst

im gettin the same problem. it was working fine yesterday tho

NotHalls avatar Mar 03 '22 05:03 NotHalls

There are different messages whether you use a streaming command or a download command

Streaming example

[cody@atest ani-cli]$ ./ani-cli kore wa zombie
[1] kore-wa-zombie-desuka
[2] is-this-a-zombie-dub
[3] kore-wa-zombie-desu-ka-ova
[4] kore-wa-zombie-desu-ka-ova-dub
[5] kore-wa-zombie-desuka-of-the-dead
[6] is-this-a-zombie-of-the-dead-dub
[q] exit
Enter choice: 1
Range of episodes can be specified: start_number end_number
Choose episode[1-12]: 1
Getting data for episode 1
Video URL not found
[cody@atest ani-cli]$

Download example

[cody@atest ani-cli]$ ./ani-cli -d kore wa zombie
[1] kore-wa-zombie-desuka
[2] is-this-a-zombie-dub
[3] kore-wa-zombie-desu-ka-ova
[4] kore-wa-zombie-desu-ka-ova-dub
[5] kore-wa-zombie-desuka-of-the-dead
[6] is-this-a-zombie-of-the-dead-dub
[q] exit
Enter choice: 1
Range of episodes can be specified: start_number end_number
Choose episode[1-12]: 1

Getting data for episode 1
Downloading episode 1 ...
Exception caught
Exception: [download_helper.cc:451] errorCode=1 Unrecognized URI or unsupported protocol:

Download failed episode: 001 , please retry or check your internet connection
[cody@atest ani-cli]$

codysgotgame avatar Mar 03 '22 05:03 codysgotgame

The error y'll are getting is due to a different reason

71zenith avatar Mar 03 '22 06:03 71zenith

site has changed just a normal curl request to the embade_url giving this link [death note as example]

sources:[{file: 'https://hlsx02.asiancdn.net/astream/92bd0b67e03416084ffd8bb811b736ff/death-note-episode-1.1633168393.m3u8',label: 'hls P','type' : 'hls'},]

we have to use this link i guess

alpha-hexor avatar Mar 03 '22 06:03 alpha-hexor

Same issue for me. Running v1.8.3 on Arch.

jorinryms avatar Mar 03 '22 06:03 jorinryms

Same for me -- the error appears on all episodes.

matthewmiaow avatar Mar 03 '22 06:03 matthewmiaow

Just for the record, this was a small parsing error yesterday. The script is now broken due to increased gogoanime security. Since you have all made your way here, we're repurposing the issue for that

port19x avatar Mar 03 '22 07:03 port19x

03-03-22-02_43_19 Inspecting the message you can still get a link to the stream (or the embed that is). For this example, the link would be, https://gogoplay4.com/streaming.php?id=MTA2MjQ=&title=Death+Note+Episode+1

kalix123 avatar Mar 03 '22 07:03 kalix123

Running bash -x ani-cli flcl and selecting flcl-dub, I get the following relevant debug info:

+ dpage_link='https://gogoplay4.com/embedplus?id=NzM1MTM=&token=xJtjz5PCAAuREq3PGViG9w&expires=1646295421'
++ get_video_quality 'https://gogoplay4.com/embedplus?id=NzM1MTM=&token=xJtjz5PCAAuREq3PGViG9w&expires=1646295421'
++ dpage_url='https://gogoplay4.com/embedplus?id=NzM1MTM=&token=xJtjz5PCAAuREq3PGViG9w&expires=1646295421'
+++ decrypt_link 'https://gogoplay4.com/embedplus?id=NzM1MTM=&token=xJtjz5PCAAuREq3PGViG9w&expires=1646295421'
+++ ajax_url=https://gogoplay.io/encrypt-ajax.php
+++ secret_key=3235373436353338353932393338333936373634363632383739383333323838
+++ iv=34323036393133333738303038313335
++++ printf %s 'https://gogoplay4.com/embedplus?id=NzM1MTM=&token=xJtjz5PCAAuREq3PGViG9w&expires=1646295421'
++++ cut '-d?' -f2
++++ cut '-d&' -f1
++++ sed s/id=//g
+++ video_id=NzM1MTM=
++++ printf %s NzM1MTM=
++++ openssl enc -aes256 -K 3235373436353338353932393338333936373634363632383739383333323838 -iv 34323036393133333738303038313335 -a
+++ ajax=bYiO5MUWIjqSPbNcQO/aVQ==
+++ curl -s -H x-requested-with:XMLHttpRequest https://gogoplay.io/encrypt-ajax.php -d id=bYiO5MUWIjqSPbNcQO/aVQ== -d time=69420691337800813569
+++ sed -e 's/\].*/\]/' -e 's/\\//g'
+++ grep -Eo 'https:\/\/[-a-zA-Z0-9@:%._\+~#=][a-zA-Z0-9][-a-zA-Z0-9@:%_\+.~#?&\/\/=]*'
++ video_links=
++ case $quality in
+++ printf %s ''
+++ head -n 4
+++ tail -n 1
++ video_link=
++ printf %s ''
+ video_url=
+ '[' 0 -eq 1 ']'
+ '[' 0 -eq 0 ']'
+ sed -E '
			s/^flcl-dub\t[0-9]+/flcl-dub\t2/
		' /home/ura/.cache/ani-hsts
+ '[' 0 -ne 0 ']'
+ '[' -z '' ']'
+ die 'Video URL not found'
+ err 'Video URL not found'
+ printf '\033[1;31m%s\033[0m\n' 'Video URL not found'
Video URL not found
+ exit 1

Edit: this just confirms our suspicions and doesn't actually bring us any closer to a solution.

port19x avatar Mar 03 '22 07:03 port19x

site has changed just a normal curl request to the embade_url giving this link [death note as example]

sources:[{file: 'https://hlsx02.asiancdn.net/astream/92bd0b67e03416084ffd8bb811b736ff/death-note-episode-1.1633168393.m3u8',label: 'hls P','type' : 'hls'},]

we have to use this link i guess

That link doesn't work for me, at least not ootb. Could you provide further context?

port19x avatar Mar 03 '22 07:03 port19x

Yea the these links aren't working

alpha-hexor avatar Mar 03 '22 08:03 alpha-hexor

0

03-03-22-02_43_19 Inspecting the message you can still get a link to the stream (or the embed that is). For this example, the link would be, https://gogoplay4.com/streaming.php?id=MTA2MjQ=&title=Death+Note+Episode+1

Can we use burp suite for that??

alpha-hexor avatar Mar 03 '22 08:03 alpha-hexor