Spaces:
Running
Running
Z User commited on
Commit ·
8afa4f1
1
Parent(s): d448306
v14: 8 new Vyla SDK sources (vidfast, vidup, meowtv, lookmovie, lmscript, fsonic, vidrock, hexa)
Browse files1234548 unmodified lines5455565758596061626364651514 unmodified lines15801581158215831584158518 unmodified lines160416051606160716081609161016111612"""StreamForge API v13 - Multi-Language Stream Scraperv13 (netmirror+castle rebuild, Nuvio port):- NetMirror REBUILT from All-in-One-Nuvio netmirror.js: the bcdnxw CDN 429s areREFERER-gating: the CDN requires Referer "https://videodownloader.site/"48 unmodified linesimport contextvarsimport hashlibimport html as ihtmlfrom urllib.parse import quote, urljoin, urlparseapp = FastAPI(title="StreamForge API",description="Multi-language m3u8/mp4/MKV stream scraper",version="13.0.0",)app.add_middleware(1514 unmodified lines_SF_HUB_HEADERS = {"User-Agent": _SF_MOBILE_UA, "Accept": "text/html,application/xhtml+xml,*/*", "Accept-Language": "en-US,en;q=0.5"}# ===== Source Map =====SOURCE_MAP = {18 unmodified lines"vegamovies": {"name": "VegaMovies", "fn": lambda tid, mt, s, e: scrape_vegamovies(tid, mt, s, e),"languages": ["Hindi", "English", "Multi"], "reliability": "medium","note": "search.php?q=imdb + nexdrive + vcloud chain, direct MKV up to 4K"},}DEFAULT_SOURCES = ["castle", "netmirror", "playbox", "movix", "movies4u", "persianstremio"]# ===== Helper: Run scrapers =====12345678910111213141516171819202122232448 unmodified lines737475767778798081828384851514 unmodified lines1600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206018 unmodified lines207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114"""StreamForge API v14 - Multi-Language Stream Scraperv14 (Vyla SDK provider wave):- 8 NEW sources ported from the Vyla SDK (github.com/vyla-entertainment/sdk,40 provider files tested one-by-one with playlist+segment verification froma datacenter IP):WORKING -> integrated: vidfast (2160p fMP4), vidup, meowtv (castle-CDNmulti-language), lookmovie, lmscript, fsonic (direct MP4), vidrock(AES-GCM), hexa (intermittent).DEAD from datacenter (documented, NOT integrated): vidlink (site down,403s), vidsync (enc dec issues), pengu (google auth wall), videasy(Cineby property - excluded per policy), vidnest (playlist 403), cinesu(playlist 403), vidfast-via-nuvio (old impl), anikoto/anineko (segment403), vidrift/vidcore/vidvault/opstream/peachify/vixsrc/xpass/1embed/cinejoy/flaxmovies/fsharetv/fsonline/mapple/kisskh/anizone/anipm/anihq/123anime/reanime/kickassanime (no streams / anime-only catalogs).- Note: vidfast/vidup/meowtv/hexa depend on enc-dec.app (public crypto relaythe sites themselves use client-side; it is also what the Vyla SDK uses).- Known upstream catalog gaps: NetMirror genuinely lacks some older titles(e.g. Venom 2018 -> noSource:true from net27.cc upstream) - the API nowreturns 13+ other sources for such titles; players should fall back.v13 (netmirror+castle rebuild, Nuvio port):- NetMirror REBUILT from All-in-One-Nuvio netmirror.js: the bcdnxw CDN 429s areREFERER-gating: the CDN requires Referer "https://videodownloader.site/"48 unmodified linesimport contextvarsimport hashlibimport html as ihtmlfrom urllib.parse import quote, urljoin, urlparse, unquoteimport randomapp = FastAPI(title="StreamForge API",description="Multi-language m3u8/mp4/MKV stream scraper",version="14.0.0",)app.add_middleware(1514 unmodified lines_SF_HUB_HEADERS = {"User-Agent": _SF_MOBILE_UA, "Accept": "text/html,application/xhtml+xml,*/*", "Accept-Language": "en-US,en;q=0.5"}# =====================================================================# Vyla SDK ports (github.com/vyla-entertainment/sdk) — v14 additions.# Tested one-by-one from a datacenter IP with playlist+segment verification.# =====================================================================_ENC_DEC = "https://enc-dec.app/api"def _b64url_bytes(v: str) -> bytes:pad = "=" * (-len(v) % 4)return base64.urlsafe_b64decode(v + pad)# ===== VidRock (Vyla vidrock.js): vidrock.ru/api + AES-GCM =====_VIDROCK_GCM_KEY = "7f3e9c2a8b5d1f4e6a9c3b7d2e5f8a1c4b6d9e2f5a8c1b4d7e9f2a5c8b1d4e7f"_VIDROCK_PROXY_PREFIX = "https://proxy.vidrock.store/"def _vidrock_decrypt(value: str):try:from Crypto.Cipher import AESdata = _b64url_bytes(value)if len(data) < 28:return Noneiv, ct = data[:12], data[12:]key = bytes.fromhex(_VIDROCK_GCM_KEY)cipher = AES.new(key, AES.MODE_GCM, nonce=iv)try:return cipher.decrypt_and_verify(ct[:-16], ct[-16:]).decode()except Exception:out = cipher.decrypt(ct).decode(errors="ignore")return out.split("\x00")[0].strip()except Exception:return Noneasync def scrape_vidrock(tmdb_id: int, media_type: str, season: int = None, episode: int = None):results, errors = [], []try:async with httpx.AsyncClient(timeout=20, follow_redirects=True) as client:path = f"tv/{tmdb_id}/{season or 1}/{episode or 1}" if media_type == "tv" else f"movie/{tmdb_id}"resp = await client.get(f"https://vidrock.ru/api/{path}", headers={"User-Agent": HEADERS["User-Agent"], "Referer": "https://vidrock.ru/","Origin": "https://vidrock.ru"})if resp.status_code != 200:errors.append(f"VidRock: API HTTP {resp.status_code}")return results, errorsdata = resp.json()for provider, info in (data or {}).items():try:enc_url = (info or {}).get("url") if isinstance(info, dict) else Noneif not enc_url:continueurl = _vidrock_decrypt(enc_url)if not url or not url.startswith("http"):continueif url.startswith(_VIDROCK_PROXY_PREFIX):url = unquote(url[len(_VIDROCK_PROXY_PREFIX):].lstrip("/"))is_xpass = "xpass.top" in urlvheaders = {"User-Agent": HEADERS["User-Agent"],"Referer": "https://play.xpass.top/" if is_xpass else "https://vidrock.ru/","Origin": "https://play.xpass.top" if is_xpass else "https://vidrock.ru",}results.append(_sf_stream_result(f"VidRock/{provider}", f"VidRock - {provider}", url,quality=info.get("type") or "Auto", language="English", headers=vheaders))except Exception:continueif not results:errors.append("VidRock: no streams")except Exception as ex:errors.append(f"VidRock: {str(ex)}")return results, errors# ===== VidFast + VidUp (Vyla vidfast.js / vidup.js): enc-dec.app protocol =====async def _vidfamily_scrape(domain: str, enc_path: str, dec_path: str, label: str,tmdb_id: int, media_type: str, season: int = None, episode: int = None):results, errors = [], []try:async with httpx.AsyncClient(timeout=30, follow_redirects=True) as client:if media_type == "tv":embed_url = f"{domain}/tv/{tmdb_id}/{season or 1}/{episode or 1}/"else:embed_url = f"{domain}/movie/{tmdb_id}/"resp = await client.get(embed_url, headers={"User-Agent": HEADERS["User-Agent"]})html = resp.textm = (re.search(r'\\"(?:en|token)\\":\\"(.*?)\\"', html)or re.search(r'"(?:en|token)":"(.*?)"', html))if not m:errors.append(f"{label}: no token in embed")return results, errorsresp = await client.get(f"{_ENC_DEC}/{enc_path}", params={"text": m.group(1)})enc = resp.json()if enc.get("status") != 200 or not enc.get("result"):errors.append(f"{label}: enc failed")return results, errorsmeta = enc["result"]req_headers = {"User-Agent": HEADERS["User-Agent"],"Referer": f"{domain}/","X-Requested-With": "XMLHttpRequest","X-CSRF-Token": meta["token"],}resp = await client.post(meta["servers"], headers=req_headers)resp = await client.post(f"{_ENC_DEC}/{dec_path}", json={"text": resp.text})dec = resp.json()if dec.get("status") != 200 or not dec.get("result"):errors.append(f"{label}: servers decrypt failed")return results, errorsservers = dec["result"]for srv in servers:try:resp = await client.post(f"{meta['stream']}/{srv['data']}", headers=req_headers)resp = await client.post(f"{_ENC_DEC}/{dec_path}", json={"text": resp.text})sd = resp.json()sres = (sd.get("result") or {}) if sd.get("status") == 200 else {}surl = sres.get("url")if not surl:continuesubs = []for cap in (sres.get("captions") or []):if cap.get("file"):subs.append({"language": cap.get("label") or "Sub", "url": cap["file"]})vheaders = {"User-Agent": HEADERS["User-Agent"],"Referer": f"{domain}/","Origin": domain,}results.append(_sf_stream_result(f"{label}/{srv.get('name') or 'Server'}", f"{label} - {srv.get('name') or 'Server'}",surl, quality="Auto", language="English", headers=vheaders,subtitles=subs or None))except Exception:continueif not results:errors.append(f"{label}: no playable servers")except Exception as ex:errors.append(f"{label}: {str(ex)}")return results, errorsasync def scrape_vidfast(tmdb_id: int, media_type: str, season: int = None, episode: int = None):return await _vidfamily_scrape("https://vidfast.vc", "enc-vidfast", "dec-vidfast","VidFast", tmdb_id, media_type, season, episode)async def scrape_vidup(tmdb_id: int, media_type: str, season: int = None, episode: int = None):return await _vidfamily_scrape("https://vidup.to", "enc-vidup", "dec-vidup","VidUp", tmdb_id, media_type, season, episode)# ===== MeowTV (Vyla meowtv.js): api.meowtv.ru + enc-dec.app (castle-CDN family) =====async def scrape_meowtv(tmdb_id: int, media_type: str, season: int = None, episode: int = None):results, errors = [], []try:async with httpx.AsyncClient(timeout=25, follow_redirects=True) as client:for srv in ["tik", "hindiv3"]:try:if media_type == "tv":path = f"/streams/tv/{tmdb_id}/{season or 1}/{episode or 1}?s={srv}"else:path = f"/streams/movie/{tmdb_id}?s={srv}"resp = await client.get(f"https://api.meowtv.ru{path}", headers={"User-Agent": HEADERS["User-Agent"], "Accept": "application/json","Referer": "https://meowtv.ru/", "Origin": "https://meowtv.ru","Accept-Language": "en-US,en;q=0.9"})payload = resp.json()resp = await client.post(f"{_ENC_DEC}/dec-meowtv", json={"data": payload})dec = resp.json()if dec.get("status") != 200 or not dec.get("result"):continueres = dec["result"]if isinstance(res, str):res = json.loads(res)vheaders = {"User-Agent": HEADERS["User-Agent"],"Referer": "https://meowtv.ru/","Origin": "https://meowtv.ru",}if str(res.get("url") or "").startswith("http"):results.append(_sf_stream_result(f"MeowTV/{srv}", f"MeowTV - {srv}", res["url"],quality="Auto", language="Multi", headers=vheaders))for st in (res.get("streams") or []):if str(st.get("url") or "").startswith("http"):results.append(_sf_stream_result(f"MeowTV/{srv}", f"MeowTV - {srv} ({st.get('language') or 'Multi'})",st["url"], quality="Auto",language=st.get("language") or "Multi", headers=vheaders))except Exception:continueif not results:errors.append("MeowTV: no streams")except Exception as ex:errors.append(f"MeowTV: {str(ex)}")return results, errors# ===== LookMovie (Vyla lookmovie.js): title search + security access =====async def scrape_lookmovie(tmdb_id: int, media_type: str, season: int = None, episode: int = None):results, errors = [], []try:info = await get_tmdb_info(tmdb_id, media_type)title, year = info.get("title"), info.get("year")if not title:errors.append("LookMovie: no TMDB title")return results, errorsis_tv = media_type == "tv"typestr = "shows" if is_tv else "movies"async with httpx.AsyncClient(timeout=30, follow_redirects=True) as client:base = match = Nonefor b in ["https://www.lookmovie2.to", "https://lookmovie2.to"]:try:resp = await client.get(f"{b}/api/v1/{typestr}/do-search/", params={"q": title},headers={"User-Agent": HEADERS["User-Agent"], "Accept": "application/json","Referer": f"{b}/", "X-Requested-With": "XMLHttpRequest"})res = (resp.json() or {}).get("result") or []if res:match = next((x for x in res if str(x.get("year")) == str(year)), None) \or next((x for x in res if _sf_norm(x.get("title")) == _sf_norm(title)), None) \or res[0]base = bbreakexcept Exception:continueif not match:errors.append("LookMovie: title not in catalog")return results, errorsresp = await client.get(f"{base}/{typestr}/play/{match['slug']}", headers={"User-Agent": HEADERS["User-Agent"], "Referer": f"{base}/", "Accept": "text/html"})html = resp.textstorage = re.search(r"window\[['\"](?:movie|show)_storage['\"]\]\s*=\s*\{(.+?)\};", html, re.S)if not storage:errors.append("LookMovie: no storage block")return results, errorsblock = storage.group(1)hm = re.search(r"hash\s*:\s*['\"]([^'\"]+)['\"]", block)em = re.search(r"expires\s*:\s*(\d+)", block)if not (hm and em):errors.append("LookMovie: no hash/expires")return results, errorsstream_id = match.get("id_movie") or match.get("id")if is_tv:sid = Noneparts = re.split(r"id_episode['\"]?\s*[:=]\s*['\"]?(\d+)['\"]?", html)for i in range(1, len(parts) - 1, 2):ctx = parts[i - 1][-300:] + parts[i + 1][:300]if re.search(rf"['\"]?episode['\"]?\s*[:=]\s*['\"]?{episode}['\"]?", ctx) and \re.search(rf"['\"]?season['\"]?\s*[:=]\s*['\"]?{season}['\"]?", ctx):sid = parts[i]breakif not sid:am = re.search(rf'data-season=["\']{season}["\'][^>]*?data-episode=["\']{episode}["\'][^>]*?data-id=["\'](\d+)["\']', html) or \re.search(rf'data-episode=["\']{episode}["\'][^>]*?data-season=["\']{season}["\'][^>]*?data-id=["\'](\d+)["\']', html)sid = am.group(1) if am else Noneif not sid:errors.append(f"LookMovie: episode S{season}E{episode} not found")return results, errorsstream_id = sidkind = "episode" if is_tv else "movie"resp = await client.get(f"{base}/api/v1/security/{kind}-access", params={f"id_{kind}": stream_id, "hash": hm.group(1), "expires": em.group(1)},headers={"User-Agent": HEADERS["User-Agent"], "Accept": "application/json","Referer": f"{base}/", "X-Requested-With": "XMLHttpRequest"})d = resp.json()streams = d.get("streams") or (d.get("result") or {}).get("streams") \or (d.get("data") or {}).get("streams") or dif isinstance(streams, dict):for quality, u in streams.items():if isinstance(u, str) and ".m3u8" in u:results.append(_sf_stream_result("LookMovie", f"LookMovie - {quality}", u,quality=str(quality), language="English"))if not results:errors.append("LookMovie: no m3u8 streams")except Exception as ex:errors.append(f"LookMovie: {str(ex)}")return results, errors# ===== LMScript (Vyla lmscript.js): lmscript.xyz JSON API =====async def scrape_lmscript(tmdb_id: int, media_type: str, season: int = None, episode: int = None):results, errors = [], []if media_type == "tv":errors.append("LMScript: movies only")return results, errorstry:info = await get_tmdb_info(tmdb_id, media_type)title = info.get("title")if not title:errors.append("LMScript: no TMDB title")return results, errorsasync with httpx.AsyncClient(timeout=20, follow_redirects=True) as client:resp = await client.get("https://lmscript.xyz/v1/movies",params={"filters[q]": title, "expand": "streams"})d = resp.json()movie = next((it for it in (d.get("items") or [])if str(it.get("tmdb_id")) == str(tmdb_id)or str(it.get("tmdb_prefix")) == str(tmdb_id)), None)if not movie:errors.append("LMScript: title not in catalog")return results, errorsorder = {"1080p": 0, "720p": 1, "480p": 2, "360p": 3}for quality in sorted((movie.get("streams") or {}).keys(),key=lambda q: order.get(q, 9)):u = (movie.get("streams") or {})[quality]if isinstance(u, str) and u.startswith("http"):results.append(_sf_stream_result("LMScript", f"LMScript - {quality}", u,quality=str(quality), language="English"))if not results:errors.append("LMScript: no streams")except Exception as ex:errors.append(f"LMScript: {str(ex)}")return results, errors# ===== Fsonic (Vyla fsonic.js): fsonic.net search + fsharetv.co mp4 =====async def scrape_fsonic(tmdb_id: int, media_type: str, season: int = None, episode: int = None):results, errors = [], []if media_type == "tv":errors.append("Fsonic: movies only")return results, errorstry:info = await get_tmdb_info(tmdb_id, media_type)title, year = info.get("title"), str(info.get("year") or "")if not title:errors.append("Fsonic: no TMDB title")return results, errorsH = {"User-Agent": HEADERS["User-Agent"],"Accept": "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8","Accept-Language": "en-US,en;q=0.9"}watch_slug = Noneasync with httpx.AsyncClient(timeout=25, follow_redirects=True) as client:resp = await client.get(f"https://www.fsonic.net/movie/search/{quote(title)}", headers=H)for m in re.finditer(r'href="(/watch/[^"]+)"', resp.text):if year and year in m.group(1):watch_slug = m.group(1)breakif not watch_slug:watch_slug = m.group(1)if not watch_slug:errors.append("Fsonic: title not in catalog")return results, errorsresp = await client.get(f"https://www.fsonic.net{watch_slug}", headers=H)m = re.search(r"init\('([^']+)',\s*(?:'[^']*',\s*)?'([^']+)'", resp.text)if not m:errors.append("Fsonic: no init token")return results, errorsresp = await client.get(f"https://www.fsonic.net/api/source/{m.group(1)}",params={"trailer": m.group(2), "type": "watch"},headers={**H, "Accept": "application/json","Referer": f"https://www.fsonic.net{watch_slug}"})j = resp.json()if j.get("status") != "ok":errors.append("Fsonic: source API error")return results, errorsf = (j.get("data") or {}).get("file") or {}groups = [f.get("sources") or []] + [g for g in (f.get("alternatives") or []) if g]vheaders = {"User-Agent": HEADERS["User-Agent"], "Referer": "https://fsharetv.co/"}seen = set()for g in groups:best = sorted([x for x in g if x.get("src")],key=lambda x: int(re.sub(r"\D", "", str(x.get("quality") or "0")) or 0),reverse=True)if not best:continuesrc = best[0]["src"]if not src.startswith("http"):src = f"https://fsharetv.co{src}"if src in seen:continueseen.add(src)results.append(_sf_stream_result("Fsonic", f"Fsonic - {best[0].get('quality') or 'Auto'} MP4", src,quality=str(best[0].get("quality") or "Auto"), language="English", headers=vheaders))if not results:errors.append("Fsonic: no streams")except Exception as ex:errors.append(f"Fsonic: {str(ex)}")return results, errors# ===== Hexa (Vyla hexa.js): theemoviedb.hexa.su + enc-dec.app =====async def scrape_hexa(tmdb_id: int, media_type: str, season: int = None, episode: int = None):results, errors = [], []try:async with httpx.AsyncClient(timeout=25, follow_redirects=True) as client:resp = await client.get(f"{_ENC_DEC}/enc-hexa")j = resp.json()if j.get("status") != 200:errors.append("Hexa: challenge failed")return results, errorscap_token = (j.get("result") or {}).get("token")api_key = "%064x" % random.getrandbits(256)decrypted = Nonefor domain in ["hexa.su", "flixer.su"]:try:if media_type == "tv":url = f"https://theemoviedb.{domain}/api/tmdb/tv/{tmdb_id}/season/{season or 1}/episode/{episode or 1}/images"else:url = f"https://theemoviedb.{domain}/api/tmdb/movie/{tmdb_id}/images"resp = await client.get(url, headers={"User-Agent": HEADERS["User-Agent"], "Referer": f"https://{domain}/","Accept": "text/plain", "X-Fingerprint-Lite": "e9136c41504646444","X-Api-Key": api_key, "X-Cap-Token": cap_token})if not resp.text:continueresp = await client.post(f"{_ENC_DEC}/dec-hexa",json={"text": resp.text, "key": api_key})j = resp.json()if j.get("status") == 200 and (j.get("result") or {}).get("sources"):decrypted = j["result"]breakexcept Exception:continueif not decrypted:errors.append("Hexa: no sources")return results, errorssubs = [{"language": s.get("label") or s.get("lang") or "Sub", "url": s.get("url")}for s in (decrypted.get("subtitles") or []) if s.get("url")]for src in decrypted.get("sources") or []:u = src.get("url")if u and u.startswith("http"):results.append(_sf_stream_result(f"Hexa/{src.get('name') or 'Server'}", f"Hexa - {src.get('name') or 'Server'}",u, quality=str(src.get("quality") or "Auto"), language="English",subtitles=subs or None))if not results:errors.append("Hexa: no streams")except Exception as ex:errors.append(f"Hexa: {str(ex)}")return results, errors# ===== Source Map =====SOURCE_MAP = {18 unmodified lines"vegamovies": {"name": "VegaMovies", "fn": lambda tid, mt, s, e: scrape_vegamovies(tid, mt, s, e),"languages": ["Hindi", "English", "Multi"], "reliability": "medium","note": "search.php?q=imdb + nexdrive + vcloud chain, direct MKV up to 4K"},# --- v14: Vyla SDK ports (tested one-by-one from datacenter + HF) ---"vidfast": {"name": "VidFast", "fn": lambda tid, mt, s, e: scrape_vidfast(tid, mt, s, e),"languages": ["English"], "reliability": "high","note": "vidfast.vc embed + enc-dec.app crypto relay (Vyla vidfast.js port). fMP4 HLS up to 2160p, multi-server, movie+TV, subtitles"},"vidup": {"name": "VidUp", "fn": lambda tid, mt, s, e: scrape_vidup(tid, mt, s, e),"languages": ["English"], "reliability": "high","note": "vidup.to embed + enc-dec.app (Vyla vidup.js port). Same peakstorm CDN family as VidFast via a different upstream - complementary coverage, movie+TV"},"meowtv": {"name": "MeowTV", "fn": lambda tid, mt, s, e: scrape_meowtv(tid, mt, s, e),"languages": ["Hindi", "Multi", "English"], "reliability": "high","note": "api.meowtv.ru + enc-dec.app dec-meowtv (Vyla meowtv.js port). Castle-CDN m3u8 (hindiv3), movie+TV"},"lookmovie": {"name": "LookMovie", "fn": lambda tid, mt, s, e: scrape_lookmovie(tid, mt, s, e),"languages": ["English"], "reliability": "medium","note": "lookmovie2.to title search + security access API (Vyla lookmovie.js port). undersel.buzz HLS, movie+TV"},"lmscript": {"name": "LMScript", "fn": lambda tid, mt, s, e: scrape_lmscript(tid, mt, s, e),"languages": ["English"], "reliability": "medium","note": "lmscript.xyz/v1/movies JSON API (Vyla lmscript.js port). undersel.buzz HLS 360-1080p, movies only"},"fsonic": {"name": "Fsonic", "fn": lambda tid, mt, s, e: scrape_fsonic(tid, mt, s, e),"languages": ["English"], "reliability": "medium","note": "fsonic.net search + fsharetv.co direct MP4 720/1080 (Vyla fsonic.js port). Movies only"},"vidrock": {"name": "VidRock", "fn": lambda tid, mt, s, e: scrape_vidrock(tid, mt, s, e),"languages": ["English"], "reliability": "medium","note": "vidrock.ru/api + AES-GCM decrypt (Vyla vidrock.js port). ngcorp.dad/flamingo workers m3u8. Movies verified playable; TV episodes route segments via ByteDance ipstatp CDN that 403s datacenter IPs"},"hexa": {"name": "Hexa", "fn": lambda tid, mt, s, e: scrape_hexa(tid, mt, s, e),"languages": ["English"], "reliability": "low","note": "theemoviedb.hexa.su + enc-dec.app (Vyla hexa.js port). dragonballzfans CDNs, movie+TV, intermittent"},}DEFAULT_SOURCES = ["castle", "netmirror", "playbox", "movix", "vidfast", "vidup","meowtv", "lookmovie", "lmscript", "fsonic", "vidrock", "hexa","movies4u", "persianstremio"]# ===== Helper: Run scrapers =====
main.py+506-4