Fix Mediaset Play
This commit is contained in:
@@ -250,7 +250,7 @@ def findvideos(item):
|
|||||||
Format = 'dash+xml' if mpd else 'x-mpegURL'
|
Format = 'dash+xml' if mpd else 'x-mpegURL'
|
||||||
for it in item.urls:
|
for it in item.urls:
|
||||||
if Format in it['format']:
|
if Format in it['format']:
|
||||||
item.url = requests.head(it['publicUrls'][0]).headers['Location']
|
item.url = requests.head(it['publicUrls'][0]).headers['Location'] + '|User-Agent=' + support.httptools.get_user_agent()
|
||||||
pid = it['releasePids'][0]
|
pid = it['releasePids'][0]
|
||||||
if mpd and 'widevine' in it['assetTypes']:
|
if mpd and 'widevine' in it['assetTypes']:
|
||||||
break
|
break
|
||||||
@@ -278,7 +278,7 @@ def findvideos(item):
|
|||||||
if url:
|
if url:
|
||||||
|
|
||||||
sec_data = support.match(url + '?' + urlencode(res)).data
|
sec_data = support.match(url + '?' + urlencode(res)).data
|
||||||
item.url = support.match(sec_data, patron=r'<video src="([^"]+)').match
|
item.url = support.match(sec_data, patron=r'<video src="([^"]+)').match + '|User-Agent=' + support.httptools.get_user_agent()
|
||||||
pid = support.match(sec_data, patron=r'pid=([^|]+)').match
|
pid = support.match(sec_data, patron=r'pid=([^|]+)').match
|
||||||
|
|
||||||
if mpd and pid:
|
if mpd and pid:
|
||||||
|
|||||||
Reference in New Issue
Block a user