Version 0.9.13

This commit is contained in:
Paco8 committed 2024-10-08 14:08:53 +02:00
1 parent 2a8157c238
commit af0a1fb6a6
6 files changed
+25 -1

No files matched your search

+2
View File
@@ -832,6 +832,7 @@ class Movistar(object):
t['subscribed'] = self.is_subscribed_vod(video.get('tvProducts', []))
if not 'UrlVideo' in video: return None
t['url'] = video['UrlVideo']
t['availability'] = {'start': video.get('FechaInicioPublicacion'), 'end': video.get('FechaFinPublicacion')}
if video['AssetType'] == 'VOD':
t['session_request'] = '{"contentID":' + str(t['id']) + ',"drmMediaID":"' + video['CasId'] +'", "streamType":"AST"}'
elif video['AssetType'] == 'U7D':
@@ -1011,6 +1012,7 @@ class Movistar(object):
if not 'UrlVideo' in video: continue
t['subscribed'] = self.is_subscribed_vod(video.get('tvProducts', []))
t['url'] = video['UrlVideo']
t['availability'] = {'start': video.get('FechaInicioPublicacion'), 'end': video.get('FechaFinPublicacion')}
if video['AssetType'] == 'VOD':
t['session_request'] = '{"contentID":' + str(t['id']) + ',"drmMediaID":"' + video['CasId'] +'", "streamType":"AST"}'
elif video['AssetType'] == 'U7D':
+13
View File
@@ -286,6 +286,19 @@ def add_videos(category, ctype, videos, ref=None, url_next=None, url_prev=None,
if 'subscribed' in t:
if addon.getSettingBool('only_subscribed') and t['subscribed'] == False: continue
t['info']['title'] = m.colorize_title(t)
if 'availability' in t:
ends = int(t['availability'].get('end', '0'))
if ends > 0:
now = int(time.time()*1000)
n_hours = int((ends - now) / (1000 * 60 * 60))
n_days = int(n_hours / 24)
if (n_days <= addon.getSettingInt('expdays')):
if n_days < 1:
t['info']['title'] += ' [COLOR red](' + addon.getLocalizedString(30401).format(n_hours) + ')[/COLOR]'
else:
t['info']['title'] += ' [COLOR red](' + addon.getLocalizedString(30400).format(n_days) + ')[/COLOR]'
title_name = t['info']['title']
if not 'type' in t: continue