updated scws

This commit is contained in:
ilmich
2024-07-29 08:18:41 +02:00
parent bbdb4375c5
commit 771d2d571a

View File

@@ -23,7 +23,7 @@ def test_video_exists(page_url):
global iframeParams
global urlParams
server_url = support.scrapertools.decodeHtmlentities(support.match(page_url, patron=['<iframe [^>]+src="([^"]+)', 'embed_url="([^"]+)']).match)
iframeParams = support.match(server_url, patron=r'''"quality":(\d+)[^;]+;\s+window\.masterPlaylist\s+=\s+{[^{]+({[^}]+}),\s+url:\s+'([^']+)''').match
iframeParams = support.match(server_url, patron=r'''"quality":(\d+),.+window\.masterPlaylist\s+=\s+{[^{]+({[^}]+}),\s+url:\s+'([^']+)''').match
if not iframeParams or len(iframeParams) < 2:
return 'StreamingCommunity', 'Prossimamente'