You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
So I tried streaming from animepahe today and got this error ValueError: unknown url type: '/'
this doesn't tell anything. I know, but after some investigation this is what I came up with:
starts from get_animepahe_url() in providers/animepahe/inner/init.py line 48
the respond from get() request to pahe_win_url has changed
from redirect url being directly in the <a href="">
it's now being set by this script in the <head> after 5 seconds delay.
(Note that: these variable names changed every time)
this made the regex's capture group to capture a single placeholder '#' and puts it in url
because '#' doesn't resolve to any meaningful url, httpx.get() freaks out and throw the mentioned error.
to get a proper redirect url, I've updated the KWIK_REDIRECTION_RE
from <a href="(.+?)" .+?>Redirect me</a>
to ;\$\("a\.redirect"\)\.attr\("href","(.+?)"\)\.html\("Continue"\);
So I tried streaming from animepahe today and got this error
ValueError: unknown url type: '/'
this doesn't tell anything. I know, but after some investigation this is what I came up with:
starts from
get_animepahe_url()
in providers/animepahe/inner/init.py line 48the respond from
get()
request topahe_win_url
has changedfrom redirect url being directly in the
<a href="">
it's now being set by this script in the
<head>
after 5 seconds delay.(Note that: these variable names changed every time)
this made the regex's capture group to capture a single placeholder
'#'
and puts it inurl
because
'#'
doesn't resolve to any meaningful url,httpx.get()
freaks out and throw the mentioned error.to get a proper redirect url, I've updated the
KWIK_REDIRECTION_RE
from
<a href="(.+?)" .+?>Redirect me</a>
to
;\$\("a\.redirect"\)\.attr\("href","(.+?)"\)\.html\("Continue"\);
like this:
updating this
regex
fix the issue for mePS: sorry if I made any mistakes, I so sleepy lol
The text was updated successfully, but these errors were encountered: