Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Megacloud extractVariables for Zoro #521

Merged
merged 2 commits into from
Apr 17, 2024

Conversation

Kylart
Copy link
Contributor

@Kylart Kylart commented Apr 17, 2024

What kind of change does this PR introduce?
It seems gogoanime are working on making this difficult or something.

This PR fixes (again) Megacloud extractVariables for Zoro.

Did you add tests for your changes?

If relevant, did you update the documentation?

Summary

Other information
Fixes #517

@Kylart
Copy link
Contributor Author

Kylart commented Apr 17, 2024

I wanted to add built files but my yarn build made a ton of file changes even on unrelated files

@Kylart
Copy link
Contributor Author

Kylart commented Apr 17, 2024

@abhishek-exists Can you confirm it's working with these changes?

@abhishek-exists
Copy link

Its not reliable @Kylart I used uptime kuma and it seems they change their js code regularly.
I found the best regex which is still working for me even during different alterations
Let me know if you're still facing issues with it.

allvars =
        text
          .match(/\w{1,2}=new URLSearchParams\(window\[.+?new MobileDetect.+?;(?=function)/gm)
          ?.at(-1) ?? "";

CC: @riimuru

@riimuru
Copy link
Contributor

riimuru commented Apr 17, 2024

I just tested it, and it seems to be working fine

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ZORO fetchEpisodeSources() throws error
3 participants