Version 0.9.11
This commit is contained in:
1 parent
5ed25e7243
commit
70702fd298
4 files changed
+27
-14
No files matched your search
+12
-2
@@ -93,6 +93,16 @@ def play(params):
|
||||
else:
|
||||
url = d['url']
|
||||
|
||||
# U7D from start and end times
|
||||
if stype == 'tv' and all(param in params for param in ['cas_id', 'start_time', 'end_time']):
|
||||
from datetime import datetime
|
||||
start = datetime.utcfromtimestamp(int(params['start_time']))
|
||||
end = datetime.utcfromtimestamp(int(params['end_time']))
|
||||
catchup_url = 'https://stover-wp21.cdn.telefonica.com/{cas_id}/vxfmt=dp/Manifest.mpd?device_profile=DASH_TV_WIDEVINE&start_time={start_time}&end_time={end_time}'
|
||||
url = catchup_url.format(cas_id=params['cas_id'], start_time=start.strftime('%Y-%m-%dT%H:%M:%SZ'), end_time=end.strftime('%Y-%m-%dT%H:%M:%SZ'))
|
||||
LOG('url from capchup: {}'.format(url))
|
||||
|
||||
|
||||
# Read the proxy address
|
||||
proxy = Movistar.load_file_if_exists(os.path.join(profile_dir, 'proxy.txt'))
|
||||
LOG('proxy address: {}'.format(proxy))
|
||||
@@ -372,7 +382,7 @@ def add_videos(category, ctype, videos, ref=None, url_next=None, url_prev=None,
|
||||
|
||||
if url_next:
|
||||
list_item = xbmcgui.ListItem(label = addon.getLocalizedString(30109)) # Next page
|
||||
xbmcplugin.addDirectoryItem(_handle, get_url(action=ref, url=url_next, name=category), list_item, True)
|
||||
xbmcplugin.addDirectoryItem(_handle, get_url(action=ref, url=url_next, from_wishlist=from_wishlist, name=category), list_item, True)
|
||||
|
||||
xbmcplugin.endOfDirectory(_handle)
|
||||
|
||||
@@ -781,7 +791,7 @@ def router(paramstring):
|
||||
elif params['action'] == 'listing':
|
||||
listing(params['name'], params['url'])
|
||||
elif params['action'] == 'listing_hz':
|
||||
listing_hz(params['name'], params['url'])
|
||||
listing_hz(params['name'], params['url'], params.get('from_wishlist'))
|
||||
elif params['action'] == 'series':
|
||||
add_videos(params['name'], 'seasons', m.get_seasons(params['id']))
|
||||
elif params['action'] == 'season':
|
||||
|
||||
Reference in new issue
Block a user