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

+1 -1
View File
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<addon id="plugin.video.movistarplus" <addon id="plugin.video.movistarplus"
name="Movistar+" name="Movistar+"
version="0.9.12" version="0.9.13"
provider-name="Paco8"> provider-name="Paco8">
<requires> <requires>
<!--- <import addon="xbmc.python" version="2.25.0"/> --> <!--- <import addon="xbmc.python" version="2.25.0"/> -->
@@ -178,6 +178,10 @@ msgctxt "#30041"
msgid "Subscription country (two letter code):" msgid "Subscription country (two letter code):"
msgstr "" msgstr ""
msgctxt "#30042"
msgid "Warn when a title is removed in less than these days:"
msgstr ""
msgctxt "#30050" msgctxt "#30050"
msgid "Remember username and password" msgid "Remember username and password"
msgstr "" msgstr ""
@@ -162,6 +162,10 @@ msgctxt "#30041"
msgid "Subscription country (two letter code):" msgid "Subscription country (two letter code):"
msgstr "País de la suscripción (código de dos letras):" msgstr "País de la suscripción (código de dos letras):"
msgctxt "#30042"
msgid "Warn when a title is removed in less than these days:"
msgstr "Avisar cuando se elimine un título en menos de estos días:"
msgctxt "#30050" msgctxt "#30050"
msgid "Remember username and password" msgid "Remember username and password"
msgstr "Recordar usuario y clave" msgstr "Recordar usuario y clave"
+2
View File
@@ -832,6 +832,7 @@ class Movistar(object):
t['subscribed'] = self.is_subscribed_vod(video.get('tvProducts', [])) t['subscribed'] = self.is_subscribed_vod(video.get('tvProducts', []))
if not 'UrlVideo' in video: return None if not 'UrlVideo' in video: return None
t['url'] = video['UrlVideo'] t['url'] = video['UrlVideo']
t['availability'] = {'start': video.get('FechaInicioPublicacion'), 'end': video.get('FechaFinPublicacion')}
if video['AssetType'] == 'VOD': if video['AssetType'] == 'VOD':
t['session_request'] = '{"contentID":' + str(t['id']) + ',"drmMediaID":"' + video['CasId'] +'", "streamType":"AST"}' t['session_request'] = '{"contentID":' + str(t['id']) + ',"drmMediaID":"' + video['CasId'] +'", "streamType":"AST"}'
elif video['AssetType'] == 'U7D': elif video['AssetType'] == 'U7D':
@@ -1011,6 +1012,7 @@ class Movistar(object):
if not 'UrlVideo' in video: continue if not 'UrlVideo' in video: continue
t['subscribed'] = self.is_subscribed_vod(video.get('tvProducts', [])) t['subscribed'] = self.is_subscribed_vod(video.get('tvProducts', []))
t['url'] = video['UrlVideo'] t['url'] = video['UrlVideo']
t['availability'] = {'start': video.get('FechaInicioPublicacion'), 'end': video.get('FechaFinPublicacion')}
if video['AssetType'] == 'VOD': if video['AssetType'] == 'VOD':
t['session_request'] = '{"contentID":' + str(t['id']) + ',"drmMediaID":"' + video['CasId'] +'", "streamType":"AST"}' t['session_request'] = '{"contentID":' + str(t['id']) + ',"drmMediaID":"' + video['CasId'] +'", "streamType":"AST"}'
elif video['AssetType'] == 'U7D': 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 'subscribed' in t:
if addon.getSettingBool('only_subscribed') and t['subscribed'] == False: continue if addon.getSettingBool('only_subscribed') and t['subscribed'] == False: continue
t['info']['title'] = m.colorize_title(t) 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'] title_name = t['info']['title']
if not 'type' in t: continue if not 'type' in t: continue
+1
View File
@@ -5,6 +5,7 @@
<setting label="30020" type="bool" id="channels_with_epg" default="false"/> <setting label="30020" type="bool" id="channels_with_epg" default="false"/>
<setting label="30021" type="bool" id="add_extra_info" default="false"/> <setting label="30021" type="bool" id="add_extra_info" default="false"/>
<setting label="30033" type="bool" id="uhd" default="false"/> <setting label="30033" type="bool" id="uhd" default="false"/>
<setting label="30042" type="number" id="expdays" default="30"/>
<setting id="use_ttml2ssa" type="bool" label="$ADDON[script.module.ttml2ssa 32202]" default="false"/> <setting id="use_ttml2ssa" type="bool" label="$ADDON[script.module.ttml2ssa 32202]" default="false"/>
<setting id="ssa_settings" type="action" label="$ADDON[script.module.ttml2ssa 32201]" option="close" action="Addon.OpenSettings(script.module.ttml2ssa)" visible="eq(-1,true)" subsetting="true"/> <setting id="ssa_settings" type="action" label="$ADDON[script.module.ttml2ssa 32201]" option="close" action="Addon.OpenSettings(script.module.ttml2ssa)" visible="eq(-1,true)" subsetting="true"/>
<setting label="30019" type="action" id="is_settings" action="Addon.OpenSettings(inputstream.adaptive)" enable="System.HasAddon(inputstream.adaptive)" option="close"/> <setting label="30019" type="action" id="is_settings" action="Addon.OpenSettings(inputstream.adaptive)" enable="System.HasAddon(inputstream.adaptive)" option="close"/>