Version 0.7.9
This commit is contained in:
1 parent
ee72eb6bdb
commit
d85104aa31
6 files changed
+76
-19
No files matched your search
@@ -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.7.7"
|
version="0.7.9"
|
||||||
provider-name="Paco8">
|
provider-name="Paco8">
|
||||||
<requires>
|
<requires>
|
||||||
<!--- <import addon="xbmc.python" version="2.25.0"/> -->
|
<!--- <import addon="xbmc.python" version="2.25.0"/> -->
|
||||||
|
|||||||
@@ -125,11 +125,21 @@ msgctxt "#30036"
|
|||||||
msgid "Exclude AAC audio tracks"
|
msgid "Exclude AAC audio tracks"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
# For SkyOTT only
|
||||||
|
msgctxt "#30037"
|
||||||
|
msgid "Enable HDCP"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
# For SkyOTT only
|
# For SkyOTT only
|
||||||
msgctxt "#30040"
|
msgctxt "#30040"
|
||||||
msgid "Use only for these languages (e.g.: es en pt):"
|
msgid "Use only for these languages (e.g.: es en pt):"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
# For SkyOTT only
|
||||||
|
msgctxt "#30041"
|
||||||
|
msgid "Subscription country (two letter code):"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
msgctxt "#30101"
|
msgctxt "#30101"
|
||||||
msgid "Menu"
|
msgid "Menu"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
@@ -357,6 +367,7 @@ msgctxt "#30204"
|
|||||||
msgid "Video not available"
|
msgid "Video not available"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
# For SkyOTT only
|
||||||
msgctxt "#30205"
|
msgctxt "#30205"
|
||||||
msgid "No playback URL"
|
msgid "No playback URL"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
@@ -365,6 +376,11 @@ msgctxt "#30206"
|
|||||||
msgid "Proxy is not running"
|
msgid "Proxy is not running"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
# For SkyOTT only
|
||||||
|
msgctxt "#30207"
|
||||||
|
msgid "No user token"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
# For Orange and Movistar only
|
# For Orange and Movistar only
|
||||||
msgctxt "#30300"
|
msgctxt "#30300"
|
||||||
msgid "IPTV Manager"
|
msgid "IPTV Manager"
|
||||||
@@ -397,7 +413,7 @@ msgstr ""
|
|||||||
|
|
||||||
# For Orange and Movistar only
|
# For Orange and Movistar only
|
||||||
msgctxt "#30306"
|
msgctxt "#30306"
|
||||||
msgid "Save to this folder (requires restart)"
|
msgid "Save channels and EPG to this folder"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
# For Orange and Movistar only
|
# For Orange and Movistar only
|
||||||
|
|||||||
@@ -109,10 +109,20 @@ msgctxt "#30036"
|
|||||||
msgid "Exclude AAC audio tracks"
|
msgid "Exclude AAC audio tracks"
|
||||||
msgstr "Excluir audio AAC"
|
msgstr "Excluir audio AAC"
|
||||||
|
|
||||||
|
# For SkyOTT only
|
||||||
|
msgctxt "#30037"
|
||||||
|
msgid "Enable HDCP"
|
||||||
|
msgstr "Habilitar HDCP"
|
||||||
|
|
||||||
msgctxt "#30040"
|
msgctxt "#30040"
|
||||||
msgid "Use only for these languages (e.g.: es en pt):"
|
msgid "Use only for these languages (e.g.: es en pt):"
|
||||||
msgstr "Usar solo para estos idiomas (ej: es en pt):"
|
msgstr "Usar solo para estos idiomas (ej: es en pt):"
|
||||||
|
|
||||||
|
# For SkyOTT only
|
||||||
|
msgctxt "#30041"
|
||||||
|
msgid "Subscription country (two letter code):"
|
||||||
|
msgstr "País de la suscripción (código de dos letras):"
|
||||||
|
|
||||||
msgctxt "#30101"
|
msgctxt "#30101"
|
||||||
msgid "Menu"
|
msgid "Menu"
|
||||||
msgstr "Menú"
|
msgstr "Menú"
|
||||||
@@ -341,6 +351,11 @@ msgctxt "#30206"
|
|||||||
msgid "Proxy is not running"
|
msgid "Proxy is not running"
|
||||||
msgstr "El proxy no está funcionando"
|
msgstr "El proxy no está funcionando"
|
||||||
|
|
||||||
|
# For SkyOTT only
|
||||||
|
msgctxt "#30207"
|
||||||
|
msgid "No user token"
|
||||||
|
msgstr "No hay token de usuario"
|
||||||
|
|
||||||
msgctxt "#30300"
|
msgctxt "#30300"
|
||||||
msgid "IPTV Manager"
|
msgid "IPTV Manager"
|
||||||
msgstr "IPTV Manager"
|
msgstr "IPTV Manager"
|
||||||
@@ -362,8 +377,8 @@ msgid "Export channels and EPG for IPTV automatically"
|
|||||||
msgstr "Exportar automáticamente canales y guía para IPTV"
|
msgstr "Exportar automáticamente canales y guía para IPTV"
|
||||||
|
|
||||||
msgctxt "#30306"
|
msgctxt "#30306"
|
||||||
msgid "Save to this folder (requires restart)"
|
msgid "Save channels and EPG to this folder"
|
||||||
msgstr "Guardar en esta carpeta (requiere reinicio)"
|
msgstr "Guardar canales y EPG en esta carpeta"
|
||||||
|
|
||||||
msgctxt "#30307"
|
msgctxt "#30307"
|
||||||
msgid "Install IPTV Simple add-on"
|
msgid "Install IPTV Simple add-on"
|
||||||
|
|||||||
@@ -659,6 +659,17 @@ class Movistar(object):
|
|||||||
self.search_list = [s for s in self.search_list if s != search_term]
|
self.search_list = [s for s in self.search_list if s != search_term]
|
||||||
self.cache.save_file('searchs.json', json.dumps(self.search_list, ensure_ascii=False))
|
self.cache.save_file('searchs.json', json.dumps(self.search_list, ensure_ascii=False))
|
||||||
|
|
||||||
|
def get_favorite_data(self, links):
|
||||||
|
res = {}
|
||||||
|
for link in links:
|
||||||
|
name = link['rel']
|
||||||
|
if 'favorites' in name:
|
||||||
|
d = {}
|
||||||
|
d['id'] = link['id']
|
||||||
|
d['family'] = link.get('href', '').split("/")[-2]
|
||||||
|
res[name] = d
|
||||||
|
return res
|
||||||
|
|
||||||
def get_title(self, data):
|
def get_title(self, data):
|
||||||
t = {}
|
t = {}
|
||||||
t['info'] = {}
|
t['info'] = {}
|
||||||
@@ -671,7 +682,9 @@ class Movistar(object):
|
|||||||
t['info']['genre'] = ed['GeneroComAntena']
|
t['info']['genre'] = ed['GeneroComAntena']
|
||||||
if ed.get('TipoComercial') == 'Impulsivo': return None # Alquiler
|
if ed.get('TipoComercial') == 'Impulsivo': return None # Alquiler
|
||||||
if 'Seguible' in ed: t['seguible'] = ed['Seguible']
|
if 'Seguible' in ed: t['seguible'] = ed['Seguible']
|
||||||
if 'links' in data: t['links'] = data['links']
|
if 'links' in data:
|
||||||
|
#t['links'] = data['links']
|
||||||
|
t['favorite_data'] = self.get_favorite_data(data['links'])
|
||||||
if ed['TipoContenido'] in ['Individual', 'Episodio']:
|
if ed['TipoContenido'] in ['Individual', 'Episodio']:
|
||||||
t['type'] = 'movie'
|
t['type'] = 'movie'
|
||||||
t['stream_type'] = 'vod'
|
t['stream_type'] = 'vod'
|
||||||
|
|||||||
+22
-9
@@ -244,16 +244,29 @@ def add_videos(category, ctype, videos, ref=None, url_next=None, url_prev=None,
|
|||||||
stype = 'vod'
|
stype = 'vod'
|
||||||
possible_to_add = False
|
possible_to_add = False
|
||||||
|
|
||||||
if t['type'] in ['series', 'season']:
|
if from_wishlist:
|
||||||
possible_to_add = t.get('seguible', False)
|
# Remove from wishlist
|
||||||
|
if 'favorite_data' in t:
|
||||||
|
if 'favorites2' in t['favorite_data']:
|
||||||
|
id = t['favorite_data']['favorites2']['id']
|
||||||
|
stype = t['favorite_data']['favorites2']['family']
|
||||||
|
possible_to_add = True
|
||||||
|
elif t['type'] == 'season' and 'favorites2.season' in t['favorite_data']:
|
||||||
|
id = t['favorite_data']['favorites2.season']['id']
|
||||||
|
stype = t['favorite_data']['favorites2.season']['family']
|
||||||
|
possible_to_add = True
|
||||||
|
else:
|
||||||
|
# Add to wishlist
|
||||||
|
if t['type'] in ['series', 'season']:
|
||||||
|
possible_to_add = t.get('seguible', False)
|
||||||
|
|
||||||
if t['type'] == 'movie':
|
if t['type'] == 'movie':
|
||||||
if t.get('stream_type') == 'vod':
|
if t.get('stream_type') == 'vod':
|
||||||
possible_to_add = t['url'] != ''
|
possible_to_add = t['url'] != ''
|
||||||
if 'show_id' in t:
|
if 'show_id' in t:
|
||||||
possible_to_add = t['url'] != ''
|
possible_to_add = t['url'] != ''
|
||||||
stype = 'tv'
|
stype = 'tv'
|
||||||
id = t['show_id']
|
id = t['show_id']
|
||||||
|
|
||||||
if possible_to_add:
|
if possible_to_add:
|
||||||
if not from_wishlist:
|
if not from_wishlist:
|
||||||
|
|||||||
@@ -33,11 +33,11 @@
|
|||||||
</category>
|
</category>
|
||||||
-->
|
-->
|
||||||
<category label="30304">
|
<category label="30304">
|
||||||
<setting label="30305" type="bool" id="export_epg" default="false"/>
|
<setting label="30306" type="folder" id="epg_folder" source="" default="" option="writeable"/>
|
||||||
<setting label="30306" type="folder" id="epg_folder" source="" default="" option="writeable" enable="eq(-1,true)" subsetting="true"/>
|
<setting label="30305" type="bool" id="export_epg" default="false" enable="!eq(-1,)"/>
|
||||||
<setting label="30312" type="action" id="export_epg_now" action="RunPlugin(plugin://plugin.video.movistarplus/?action=export_epg_now)" enable="eq(-2,true)" option="close" subsetting="true"/>
|
<setting label="30308" type="action" action="Addon.OpenSettings(pvr.iptvsimple)" option="close" visible="System.HasAddon(pvr.iptvsimple)" enable="eq(-1,true)" subsetting="true"/>
|
||||||
<setting label="30307" type="action" action="InstallAddon(pvr.iptvsimple)" option="close" visible="!System.HasAddon(pvr.iptvsimple)" enable="eq(-3,true)" subsetting="true"/>
|
<setting label="30307" type="action" action="InstallAddon(pvr.iptvsimple)" option="close" visible="!System.HasAddon(pvr.iptvsimple)" enable="eq(-2,true)" subsetting="true"/>
|
||||||
<setting label="30308" type="action" action="Addon.OpenSettings(pvr.iptvsimple)" option="close" visible="System.HasAddon(pvr.iptvsimple)" enable="eq(-4,true)" subsetting="true"/>
|
<setting label="30312" type="action" id="export_epg_now" action="RunPlugin(plugin://plugin.video.movistarplus/?action=export_epg_now)" option="close" enable="!eq(-4,)"/>
|
||||||
</category>
|
</category>
|
||||||
</settings>
|
</settings>
|
||||||
|
|
||||||
Reference in new issue
Block a user