Spaces:
Running
Running
Z User commited on
Commit ·
4303eeb
1
Parent(s): 93094bf
v4.1: Fix default sources (remove vixsrc from defaults), add Cloudflare note
Browse files499 unmodified lines50050150250350450550650750850951051151251374 unmodified lines58858959059159259359459559659759859960060160263 unmodified lines666667668669670671672499 unmodified lines"cinesu": {"name": "CineSu", "fn": lambda tid, mt, s, e: scrape_cinesu(tid, mt, s, e),"languages": ["English"], "reliability": "high"},"vixsrc": {"name": "VixSrc", "fn": lambda tid, mt, s, e: scrape_vixsrc(tid, mt, s, e),"languages": ["English", "Italian", "Multi"], "reliability": "high"},"vidnest": {"name": "VidNest", "fn": lambda tid, mt, s, e: scrape_vidnest(tid, mt, s, e),"languages": ["French", "English", "Multi"], "reliability": "medium"},"popr": {"name": "Popr", "fn": lambda tid, mt, s, e: scrape_popr(tid, mt, s, e),"languages": ["Hindi", "Tamil", "Telugu", "English", "French"], "reliability": "high"},}DEFAULT_SOURCES = ["cinesu", "vixsrc", "popr"]# ===== Helper: Run scrapers =====74 unmodified lines"scrape_all": "POST /api/scrape/all",},},"sources": {key: {"name": src["name"], "languages": src["languages"], "reliability": src["reliability"]}for key, src in SOURCE_MAP.items()},"default_sources": DEFAULT_SOURCES,"tips": ["No source = all default sources (cinesu, vixsrc, popr)","Best for Hindi: /movie/ID/popr","Best for English: /movie/ID/cinesu","Best for French: /movie/ID/vidnest","Best for Italian: /movie/ID/vixsrc","m3u8 links work in VLC, mpv, or any HLS player",],}63 unmodified lines@app.get("/api/sources")async def list_sources():return {"sources": {key: {"name": src["name"], "languages": src["languages"], "reliability": src["reliability"]}for key, src in SOURCE_MAP.items()},"default": DEFAULT_SOURCES,}499 unmodified lines50050150250350450550650750850951051151251351474 unmodified lines58959059159259359459559659759859960060160260360463 unmodified lines668669670671672673674675499 unmodified lines"cinesu": {"name": "CineSu", "fn": lambda tid, mt, s, e: scrape_cinesu(tid, mt, s, e),"languages": ["English"], "reliability": "high"},"vixsrc": {"name": "VixSrc", "fn": lambda tid, mt, s, e: scrape_vixsrc(tid, mt, s, e),"languages": ["English", "Italian", "Multi"], "reliability": "low","note": "Cloudflare-blocked from datacenter IPs, works from residential only"},"vidnest": {"name": "VidNest", "fn": lambda tid, mt, s, e: scrape_vidnest(tid, mt, s, e),"languages": ["French", "English", "Multi"], "reliability": "medium"},"popr": {"name": "Popr", "fn": lambda tid, mt, s, e: scrape_popr(tid, mt, s, e),"languages": ["Hindi", "Tamil", "Telugu", "English", "French"], "reliability": "high"},}DEFAULT_SOURCES = ["cinesu", "popr"]# ===== Helper: Run scrapers =====74 unmodified lines"scrape_all": "POST /api/scrape/all",},},"sources": {key: {"name": src["name"], "languages": src["languages"], "reliability": src["reliability"],**({"note": src["note"]} if "note" in src else {})}for key, src in SOURCE_MAP.items()},"default_sources": DEFAULT_SOURCES,"tips": ["No source = default sources (cinesu, popr)","Best for Hindi: /movie/ID/popr","Best for English: /movie/ID/cinesu","Best for French: /movie/ID/vidnest","VixSrc (Italian) blocked from cloud IPs, works residential only","m3u8 links work in VLC, mpv, or any HLS player",],}63 unmodified lines@app.get("/api/sources")async def list_sources():return {"sources": {key: {"name": src["name"], "languages": src["languages"], "reliability": src["reliability"],**({"note": src["note"]} if "note" in src else {})}for key, src in SOURCE_MAP.items()},"default": DEFAULT_SOURCES,}
main.py+9-6