justfoolingaround / animdl

A highly efficient, fast, powerful and light-weight anime downloader and streamer for your favorite anime.
GNU General Public License v3.0
1.32k stars 109 forks source link

Fixed kwik links for AnimePahe #298

Closed ajan890 closed 9 months ago

ajan890 commented 10 months ago

It turned out that the redirect page just changed the location where the link is placed; instead of it being in the "<a href..." block, it is now in a javascript block. The only change that had to be made was the regex matching. The change should work, but as always, test it before merging.

I figured that pulling the link out of the scripts section by matching a regex of https://kwik.cx/ would be a more elegant and less cluttered way than waiting five seconds for the link to be placed in the spot checked before, and possibly more future-proof as well.

kkpagaev commented 9 months ago

no longer works fix:

KWIK_REDIRECTION_RE = regex.compile(r'https://kwik\.si.+?"')