mirror of
https://github.com/UrloMythus/UnHided.git
synced 2026-04-11 11:50:51 +00:00
update
This commit is contained in:
@@ -16,10 +16,9 @@ class VidmolyExtractor(BaseExtractor):
|
||||
raise ExtractorError("VIDMOLY: Invalid domain")
|
||||
|
||||
headers = {
|
||||
"User-Agent":
|
||||
"Mozilla/5.0 (Windows NT 10.0; Win64; x64) "
|
||||
"AppleWebKit/537.36 (KHTML, like Gecko) "
|
||||
"Chrome/120 Safari/537.36",
|
||||
"User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) "
|
||||
"AppleWebKit/537.36 (KHTML, like Gecko) "
|
||||
"Chrome/120 Safari/537.36",
|
||||
"Referer": url,
|
||||
"Sec-Fetch-Dest": "iframe",
|
||||
}
|
||||
@@ -29,10 +28,7 @@ class VidmolyExtractor(BaseExtractor):
|
||||
html = response.text
|
||||
|
||||
# --- Extract master m3u8 ---
|
||||
match = re.search(
|
||||
r'sources:\s*\[\{file:"([^"]+)',
|
||||
html
|
||||
)
|
||||
match = re.search(r'sources\s*:\s*\[\s*\{\s*file\s*:\s*[\'"]([^\'"]+)', html)
|
||||
if not match:
|
||||
raise ExtractorError("VIDMOLY: Stream URL not found")
|
||||
|
||||
@@ -49,10 +45,8 @@ class VidmolyExtractor(BaseExtractor):
|
||||
raise ExtractorError("VIDMOLY: Request timed out")
|
||||
raise
|
||||
|
||||
if test.status_code >= 400:
|
||||
raise ExtractorError(
|
||||
f"VIDMOLY: Stream unavailable ({test.status_code})"
|
||||
)
|
||||
if test.status >= 400:
|
||||
raise ExtractorError(f"VIDMOLY: Stream unavailable ({test.status})")
|
||||
|
||||
# Return MASTER playlist, not variant
|
||||
# Let MediaFlow Proxy handle variants
|
||||
|
||||
Reference in New Issue
Block a user