Fix dirette mediaset
This commit is contained in:
@@ -92,7 +92,7 @@ def live(item):
|
|||||||
plot += '\n\nA Seguire:\n[B]{}[/B]\n{}'.format(guide.get('nextListing', {}).get('mediasetlisting$epgTitle', ''),guide.get('nextListing', {}).get('description', ''))
|
plot += '\n\nA Seguire:\n[B]{}[/B]\n{}'.format(guide.get('nextListing', {}).get('mediasetlisting$epgTitle', ''),guide.get('nextListing', {}).get('description', ''))
|
||||||
itemlist.append(item.clone(title=support.typo(title, 'bold'),
|
itemlist.append(item.clone(title=support.typo(title, 'bold'),
|
||||||
fulltitle=title, callSign=it['callSign'],
|
fulltitle=title, callSign=it['callSign'],
|
||||||
urls=guide['tuningInstruction']['urn:theplatform:tv:location:any'],
|
urls=[guide['publicUrl']],
|
||||||
plot=plot,
|
plot=plot,
|
||||||
url=url,
|
url=url,
|
||||||
action='findvideos',
|
action='findvideos',
|
||||||
@@ -247,13 +247,13 @@ def findvideos(item):
|
|||||||
if item.urls:
|
if item.urls:
|
||||||
url = ''
|
url = ''
|
||||||
pid = ''
|
pid = ''
|
||||||
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'] + '|User-Agent=' + support.httptools.get_user_agent()
|
item.url = requests.head(item.urls[0], headers={'User-Agent': support.httptools.get_user_agent()}).headers['Location']
|
||||||
pid = it['releasePids'][0]
|
# pid = it['releasePids'][0]
|
||||||
if mpd and 'widevine' in it['assetTypes']:
|
# if mpd and 'widevine' in it['assetTypes']:
|
||||||
break
|
# break
|
||||||
|
|
||||||
if mpd:
|
if mpd:
|
||||||
item.manifest = 'mpd'
|
item.manifest = 'mpd'
|
||||||
|
|||||||
@@ -1716,8 +1716,7 @@ def install_widevine():
|
|||||||
sys.path.append(path)
|
sys.path.append(path)
|
||||||
from inputstreamhelper import Helper
|
from inputstreamhelper import Helper
|
||||||
helper = Helper('mpd', drm='widevine')
|
helper = Helper('mpd', drm='widevine')
|
||||||
if not helper._check_widevine():
|
helper.check_inputstream()
|
||||||
helper.install_widevine()
|
|
||||||
|
|
||||||
|
|
||||||
def get_played_time(item):
|
def get_played_time(item):
|
||||||
|
|||||||
Reference in New Issue
Block a user