ghoshRitesh12 / aniwatch-api

Node.js API for obtaining anime information from hianime.to
https://aniwatch-api.onrender.com
MIT License
265 stars 163 forks source link

Error whilst getting anime episode sources #36

Closed WBRK-dev closed 7 months ago

WBRK-dev commented 7 months ago

Describe the bug

The route "/episode-srcs" is not working.

Expected behavior

When you send a request to the route /episode-srcs it gets the following error: error:1C80006B:Provider routines::wrong final block length

Full url: /episode-srcs?id=demon-slayer-kimetsu-no-yaiba-swordsmith-village-arc-18056?ep=100590&category=dub Server: megacloud

Actual behavior

When you send a request to the route /episode-srcs it should respond with the correct episode sources.

Additional context

No response

ghoshRitesh12 commented 7 months ago

I'll try to fix this in a future release.

WBRK-dev commented 7 months ago

I found out that the megacloud extractor is outdated. Megacloud extractor function extractVariables is not extracting the variables needed to create the secret. The regex used for getting these variables is outdated and needs to be remade. I tried to fix the regex myself but with no luck. (I have little to none experience with regex)

WBRK-dev commented 7 months ago

I've created a pull request that should fix this issue.

ghoshRitesh12 commented 7 months ago

I've created a pull request that should fix this issue.

I wasn't able to pull it off, but thanks a lot @WBRK-dev.