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 pl.crunchyroll.com issue again #42

Closed
wants to merge 1 commit into from
Closed

Fix pl.crunchyroll.com issue again #42

wants to merge 1 commit into from

Conversation

ariankordi
Copy link

This fixes #40 and #30 with how Crunchyroll is changing playlist URLs again. Previously they made pl.crunchyroll.com have playlists containing URLs to other domains without CORS so that using a simple proxy would work, but now they have these URLs inside of the playlists too, so it started breaking again because the playlists themselves weren't modified.

This commit will replace pl.crunchyroll.com URLs in HLS.js, so that it's replaced in playlists after they've been properly parsed.

Replaces pl.crunchyroll.com URLs with /pl-proxy in HLS.js requests.
Because it's replaced here, it's no longer necessary to replace it in
the Vue streamUrl property.
@LeoAlvesBahia
Copy link

LeoAlvesBahia commented Dec 3, 2020

Im still having the problem. I dont know what to do to add the domain pl.crunchyroll.com to not be blocked. Cant the addon https://addons.mozilla.org/en-US/firefox/addon/umi-enabler/ be updated?

@ariankordi
Copy link
Author

Im still having the problem. I dont know what to do to add the domain pl.crunchyroll.com to not be blocked. Cant the addon https://addons.mozilla.org/en-US/firefox/addon/umi-enabler/ be updated?

Are you using umi.party or the Netlify preview of my changes? here https://deploy-preview-42--psychologist-constance-25647.netlify.app/
My changes haven't actually been merged so umi.party doesn't have my fix but the preview I linked does.

The point of my fix and Zach's attempted fix at #31 is that, the site implements a proxy that the video page is supposed to use, instead of accessing pl.crunchyroll.com directly. If you get any CORS errors from pl.crunchyroll.com, then it isn't working. As far as I know, Zach's fix stopped working a while ago and my changes are just a simple hotfix to make it work again. That's all.
Please let me know if it still doesn't work for you, thanks.

@LeoAlvesBahia
Copy link

I was using umi.party
Thanks for the link to Netlify, it is working!
Hoping that the extension come to working soon.
Thank you so much!!

@ariankordi ariankordi closed this by deleting the head repository Jul 14, 2023
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.

Cross-Origin Request Blocked
2 participants