Skip to content

Instantly share code, notes, and snippets.

@LeonSKZ
Last active November 21, 2023 02:57
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Embed
What would you like to do?
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