Fix Altadefinizione Community
This commit is contained in:
@@ -214,20 +214,18 @@ def episodios(item):
|
|||||||
|
|
||||||
|
|
||||||
def check(item):
|
def check(item):
|
||||||
if '/watch-unsubscribed' not in item.url:
|
resolve_url(item)
|
||||||
playWindow = support.match(support.httptools.downloadpage(item.url, cloudscraper=True).data, patron='playWindow" href="([^"]+)')
|
if '/tvshow' in item.url:
|
||||||
video_url = playWindow.match
|
item.contentType = 'tvshow'
|
||||||
if '/tvshow' in video_url:
|
return episodios(item)
|
||||||
item.data = playWindow.data
|
else:
|
||||||
item.contentType = 'tvshow'
|
item.contentType = 'movie'
|
||||||
return episodios(item)
|
return findvideos(item)
|
||||||
else:
|
|
||||||
item.url = video_url.replace('/watch-unsubscribed', '/watch-external')
|
|
||||||
item.contentType = 'movie'
|
|
||||||
return findvideos(item)
|
|
||||||
|
|
||||||
def findvideos(item):
|
def findvideos(item):
|
||||||
itemlist = []
|
itemlist = []
|
||||||
|
resolve_url(item)
|
||||||
|
|
||||||
itemlist.append(item.clone(action='play', url=support.match(item.url, patron='allowfullscreen[^<]+src="([^"]+)"', cloudscraper=True).match, quality=''))
|
itemlist.append(item.clone(action='play', url=support.match(item.url, patron='allowfullscreen[^<]+src="([^"]+)"', cloudscraper=True).match, quality=''))
|
||||||
|
|
||||||
@@ -243,3 +241,12 @@ def play(item):
|
|||||||
return []
|
return []
|
||||||
else:
|
else:
|
||||||
return [item]
|
return [item]
|
||||||
|
|
||||||
|
|
||||||
|
def resolve_url(item):
|
||||||
|
if '/watch-unsubscribed' not in item.url and '/watch-external' not in item.url:
|
||||||
|
playWindow = support.match(support.httptools.downloadpage(item.url, cloudscraper=True).data, patron='playWindow" href="([^"]+)')
|
||||||
|
video_url = playWindow.match
|
||||||
|
item.data = playWindow.data
|
||||||
|
item.url = video_url.replace('/watch-unsubscribed', '/watch-external')
|
||||||
|
return item
|
||||||
Reference in New Issue
Block a user