Spaces:
Running
Running
Commit ·
7cdd985
1
Parent(s): d327e3a
fix(vegamovies): exclude season-pack zips (not browser-playable) + explicit different-season labels (S05 Complete packs no longer pass the episode filter)
Browse files475 unmodified lines47647747847947948048148248332 unmodified lines5165175185195205215225235245255265275281023 unmodified lines155215531554155515471556155715581559475 unmodified lines elif any(u.endswith(ext) or f"{ext}?" in u for ext in (".mkv", ".mp4")) and ".zip" not in u: out.append({"url": u, "label": fname or "Direct"}) elif "cloudflarestorage" in u or "workers.dev" in u or "googleusercontent.com" in u: if ".zip" not in u.lower(): # season-pack zips are not playable out.append({"url": u, "label": fname or "Direct"}) out.append({"url": u, "label": fname or "Direct"}) except Exception: pass return out32 unmodified lines other = re.search(r'\bs\d{1,2}e\d{1,2}\b|season.\d+\b|\be\d{1,2}\b|episode.\d+\b', low) if other: return False # Explicit DIFFERENT season ("S05 Complete" packs, "Season 2" labels): # never a match for the requested season even without episode info. sm = re.search(r'\bs(\d{1,2})\b|season\s*(\d{1,2})\b', low) if sm: found = int(sm.group(1) or sm.group(2)) if found != season: return False return True
1023 unmodified lines if "pixeldrain" in u: out.append({"url": _sf_pixeldrain_direct(u), "label": fname}) elif "cloudflarestorage" in u or "workers.dev" in u or ".r2.dev" in u or "googleusercontent" in u: if ".zip" not in u.lower(): # season-pack zips are not playable out.append({"url": u, "label": fname}) out.append({"url": u, "label": fname}) elif any(u.endswith(ext) or f"{ext}?" in u for ext in (".mkv", ".mp4")) and ".zip" not in u: out.append({"url": u, "label": fname}) except Exception:main.py+11-2