This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import requests | |
from cloudstream.mappers import register_mapper | |
@register_mapper | |
def crunchyroll_mapper(site, url): | |
if site == "crunchyroll": | |
gist_id = "gist_id" # Replace with actual gist id | |
res = requests.get(f"https://gist.github.com/LeonSKZ/9489bc07f132e21c0060222053d1373d/Crunchyroll.js/raw") | |
data = res.json() | |
stream_url = data["stream_url"] | |
return [("Stream", stream_url)] | |
return [] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment