Version 0.6.6
This commit is contained in:
1 parent
8c78d57315
commit
1de176dce9
7 files changed
+47
-6
No files matched your search
@@ -81,8 +81,7 @@ Una vez instalado IPTV Simple Client vamos a los ajustes de Movistarplus.
|
|||||||
|
|
||||||
- En la sección **IPTV** activamos la opción **Exportar automáticamente canales y guía para IPTV**.
|
- En la sección **IPTV** activamos la opción **Exportar automáticamente canales y guía para IPTV**.
|
||||||
- En la opción **Guardar en esta carpeta** tenemos que seleccionar una carpeta donde se guardará esa información. Puedes usar la carpeta `download` o cualquier otra, o crear una nueva.
|
- En la opción **Guardar en esta carpeta** tenemos que seleccionar una carpeta donde se guardará esa información. Puedes usar la carpeta `download` o cualquier otra, o crear una nueva.
|
||||||
- Hecho esto salimos de Kodi y volvemos a entrar.
|
- Seleccionamos la opción **Exportar los canales y la guía ahora** y esperamos unos segundos hasta que aparezca una notificación en la parte superior izquierda indicando que se han exportado los canales y la guía.
|
||||||
- Esperamos unos segundos hasta que aparezca una notificación en la parte superior izquierda indicando que Movistarplus ha exportado los canales y la guía.
|
|
||||||
- Entramos otra vez en los ajustes de Movistarplus.
|
- Entramos otra vez en los ajustes de Movistarplus.
|
||||||
- En la sección **IPTV** seleccionamos **Abrir la configuración de IPTV Simple**.
|
- En la sección **IPTV** seleccionamos **Abrir la configuración de IPTV Simple**.
|
||||||
- (**Kodi 20**) Seleccionamos "Añadir configuración de Addon". En la nueva ventana, en nombre le ponemos por ejemplo `Movistarplus`.
|
- (**Kodi 20**) Seleccionamos "Añadir configuración de Addon". En la nueva ventana, en nombre le ponemos por ejemplo `Movistarplus`.
|
||||||
|
|||||||
@@ -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.6.5"
|
version="0.6.6"
|
||||||
provider-name="Paco8">
|
provider-name="Paco8">
|
||||||
<requires>
|
<requires>
|
||||||
<!--- <import addon="xbmc.python" version="2.25.0"/> -->
|
<!--- <import addon="xbmc.python" version="2.25.0"/> -->
|
||||||
|
|||||||
@@ -316,3 +316,15 @@ msgstr ""
|
|||||||
msgctxt "#30311"
|
msgctxt "#30311"
|
||||||
msgid "Exporting EPG"
|
msgid "Exporting EPG"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
msgctxt "#30312"
|
||||||
|
msgid "Export channels and EPG now"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
msgctxt "#30320"
|
||||||
|
msgid "Rating: {}"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
msgctxt "#30321"
|
||||||
|
msgid "Show age rating before playback"
|
||||||
|
msgstr ""
|
||||||
@@ -312,3 +312,15 @@ msgstr "Exportando canales"
|
|||||||
msgctxt "#30311"
|
msgctxt "#30311"
|
||||||
msgid "Exporting EPG"
|
msgid "Exporting EPG"
|
||||||
msgstr "Exportando guía"
|
msgstr "Exportando guía"
|
||||||
|
|
||||||
|
msgctxt "#30312"
|
||||||
|
msgid "Export channels and EPG now"
|
||||||
|
msgstr "Exportar los canales y la guía ahora"
|
||||||
|
|
||||||
|
msgctxt "#30320"
|
||||||
|
msgid "Rating: {}"
|
||||||
|
msgstr "Calificación: {}"
|
||||||
|
|
||||||
|
msgctxt "#30321"
|
||||||
|
msgid "Show age rating before playback"
|
||||||
|
msgstr "Mostrar la calificación de edades al empezar la reproducción"
|
||||||
@@ -156,7 +156,7 @@ class Movistar(object):
|
|||||||
self.entitlements['partners'] = data['partners']
|
self.entitlements['partners'] = data['partners']
|
||||||
self.entitlements['activePackages'] = data['activePackages']
|
self.entitlements['activePackages'] = data['activePackages']
|
||||||
self.entitlements['vodSubscription'] = data['vodSubscription'].split(',')
|
self.entitlements['vodSubscription'] = data['vodSubscription'].split(',')
|
||||||
self.entitlements['linearSubscription'] = data['linearSubscription'].split(',')
|
self.entitlements['linearSubscription'] = data['linearSubscription'].split(',') if data['linearSubscription'] else []
|
||||||
self.entitlements['suscripcion'] = data['suscripcion']
|
self.entitlements['suscripcion'] = data['suscripcion']
|
||||||
#print_json(self.entitlements)
|
#print_json(self.entitlements)
|
||||||
self.logged = True
|
self.logged = True
|
||||||
|
|||||||
@@ -352,6 +352,7 @@ def list_epg(params):
|
|||||||
|
|
||||||
def listing(name, url):
|
def listing(name, url):
|
||||||
data = m.download_list(url, use_hz=False)
|
data = m.download_list(url, use_hz=False)
|
||||||
|
if 'Contenidos' in data:
|
||||||
l = m.get_list(data['Contenidos'])
|
l = m.get_list(data['Contenidos'])
|
||||||
url_next = data['next']['href'] if isinstance(data['next'], dict) and 'href' in data['next'] else None
|
url_next = data['next']['href'] if isinstance(data['next'], dict) and 'href' in data['next'] else None
|
||||||
url_prev = data['prev']['href'] if isinstance(data['next'], dict) and 'prev' in data['next'] else None
|
url_prev = data['prev']['href'] if isinstance(data['next'], dict) and 'prev' in data['next'] else None
|
||||||
@@ -359,6 +360,7 @@ def listing(name, url):
|
|||||||
|
|
||||||
def listing_hz(name, url):
|
def listing_hz(name, url):
|
||||||
data = m.download_list(url, use_hz=True)
|
data = m.download_list(url, use_hz=True)
|
||||||
|
if 'Contenidos' in data:
|
||||||
l = m.get_list(data['Contenidos'])
|
l = m.get_list(data['Contenidos'])
|
||||||
url_next = data['next']['href'] if isinstance(data['next'], dict) and 'href' in data['next'] else None
|
url_next = data['next']['href'] if isinstance(data['next'], dict) and 'href' in data['next'] else None
|
||||||
url_prev = data['prev']['href'] if isinstance(data['next'], dict) and 'prev' in data['next'] else None
|
url_prev = data['prev']['href'] if isinstance(data['next'], dict) and 'prev' in data['next'] else None
|
||||||
@@ -489,6 +491,19 @@ def iptv(params):
|
|||||||
#except:
|
#except:
|
||||||
# pass
|
# pass
|
||||||
|
|
||||||
|
def export_epg_now():
|
||||||
|
if not m.logged: return
|
||||||
|
folder = addon.getSetting('epg_folder')
|
||||||
|
if sys.version_info[0] > 2:
|
||||||
|
folder = bytes(folder, 'utf-8')
|
||||||
|
if not folder or not os.path.isdir(folder): return
|
||||||
|
channels_filename = os.path.join(folder, b"movistar-channels.m3u8")
|
||||||
|
epg_filename = os.path.join(folder, b"movistar-epg.xml")
|
||||||
|
show_notification(addon.getLocalizedString(30310), xbmcgui.NOTIFICATION_INFO)
|
||||||
|
m.export_channels_to_m3u8(channels_filename)
|
||||||
|
show_notification(addon.getLocalizedString(30311), xbmcgui.NOTIFICATION_INFO)
|
||||||
|
m.export_epg_to_xml(epg_filename)
|
||||||
|
|
||||||
def router(paramstring):
|
def router(paramstring):
|
||||||
"""
|
"""
|
||||||
Router function that calls other functions
|
Router function that calls other functions
|
||||||
@@ -546,6 +561,8 @@ def router(paramstring):
|
|||||||
list_vod()
|
list_vod()
|
||||||
elif params['action'] == 'search':
|
elif params['action'] == 'search':
|
||||||
search(params)
|
search(params)
|
||||||
|
elif params['action'] == 'export_epg_now':
|
||||||
|
export_epg_now()
|
||||||
elif 'iptv' in params['action']:
|
elif 'iptv' in params['action']:
|
||||||
iptv(params)
|
iptv(params)
|
||||||
else:
|
else:
|
||||||
|
|||||||
@@ -34,8 +34,9 @@
|
|||||||
<category label="30304">
|
<category label="30304">
|
||||||
<setting label="30305" type="bool" id="export_epg" default="false"/>
|
<setting label="30305" type="bool" id="export_epg" default="false"/>
|
||||||
<setting label="30306" type="folder" id="epg_folder" source="" default="" option="writeable" enable="eq(-1,true)" subsetting="true"/>
|
<setting label="30306" type="folder" id="epg_folder" source="" default="" option="writeable" enable="eq(-1,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="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(-3,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="30308" type="action" action="Addon.OpenSettings(pvr.iptvsimple)" option="close" visible="System.HasAddon(pvr.iptvsimple)" enable="eq(-4,true)" subsetting="true"/>
|
||||||
</category>
|
</category>
|
||||||
</settings>
|
</settings>
|
||||||
|
|
||||||
Reference in new issue
Block a user