diff --git a/addon.xml b/addon.xml index 2083ba7..6e49e2a 100644 --- a/addon.xml +++ b/addon.xml @@ -1,7 +1,7 @@ @@ -21,7 +21,8 @@ Movistar+ para Kodi, con inicio de sesión automático desde la red de Movistar Fork of Paco8's Movistar+ add-on (plugin.video.movistarplus). Logs in by itself from the Movistar home network, keeps the channel list and numbers up to date, hides the channels that need stronger DRM than Kodi has, adds free Galician channels (TVG2, TeleVigo) and writes a programme guide for every channel. Requires a Movistar+ subscription. Fork del addon Movistar+ de Paco8 (plugin.video.movistarplus). Inicia sesión solo desde la red de Movistar, mantiene la lista y los números de los canales al día, oculta los canales que necesitan una protección que Kodi no tiene añade canales gallegos gratuitos (TVG2, TeleVigo) y genera la guía de programación de todos los canales. Se necesita estar abonado a Movistar+. - 1.0.0+kodimov.2: programme guide for every channel (Movistar + TVG2/TeleVigo), TeleVigo on 15, silent background refresh. + 1.0.0+kodimov.3: one-tap TV setup: "Create settings for IPTV Simple" also turns on Movistar channel numbers, daily list reload, and restarts IPTV Simple; fixes invalid XML in that file. +1.0.0+kodimov.2: programme guide for every channel (Movistar + TVG2/TeleVigo), TeleVigo on 15, silent background refresh. 1.0.0+kodimov.1: first KodiMov+ release, based on Movistar+ 1.0.0. This addon is not officially commissioned/supported by Movistar+. All product names, logos, and trademarks mentioned in this project are property of their respective owners. Este addon no ha sido realizado ni apoyado por Movistar+. Todos los nombres de productos, logotipos y marcas registradas mencionados en este proyecto son propiedad de sus respectivos dueños. diff --git a/resources/lib/__pycache__/iptv.cpython-315.pyc b/resources/lib/__pycache__/iptv.cpython-315.pyc index 1fb37eb..86b43de 100644 Binary files a/resources/lib/__pycache__/iptv.cpython-315.pyc and b/resources/lib/__pycache__/iptv.cpython-315.pyc differ diff --git a/resources/lib/__pycache__/plugin.cpython-315.pyc b/resources/lib/__pycache__/plugin.cpython-315.pyc index c785eb5..c16cf0e 100644 Binary files a/resources/lib/__pycache__/plugin.cpython-315.pyc and b/resources/lib/__pycache__/plugin.cpython-315.pyc differ diff --git a/resources/lib/iptv.py b/resources/lib/iptv.py index fc8d247..0323c88 100644 --- a/resources/lib/iptv.py +++ b/resources/lib/iptv.py @@ -15,7 +15,7 @@ def save_iptv_settings(filename, name, addon_id, epg_url=None): true 1 false - 0 + 2 60 4 10 @@ -82,7 +82,7 @@ def save_iptv_settings(filename, name, addon_id, epg_url=None): content += ''' true - &start_time={utc}&end_time={utcend} + &start_time={utc}&end_time={utcend} 2''' content += ''' diff --git a/resources/lib/plugin.py b/resources/lib/plugin.py index 6bd0b26..d8ecce6 100644 --- a/resources/lib/plugin.py +++ b/resources/lib/plugin.py @@ -766,7 +766,15 @@ def create_iptv_settings(): res = xbmcgui.Dialog().yesno(addon.getLocalizedString(30322), addon.getLocalizedString(30323)) if res == False: return save_iptv_settings(filename, 'KodiMov+', 'kodimovplus', epg_url) + # Show Movistar's own channel numbers instead of 1, 2, 3... + xbmc.executeJSONRPC(json.dumps({'jsonrpc': '2.0', 'id': 1, 'method': 'Settings.SetSettingValue', + 'params': {'setting': 'pvrmanager.usebackendchannelnumbers', 'value': True}})) export_epg_now() + # Restart IPTV Simple so it loads the new instance and channel list. + for enabled in (False, True): + xbmc.executeJSONRPC(json.dumps({'jsonrpc': '2.0', 'id': 1, 'method': 'Addons.SetAddonEnabled', + 'params': {'addonid': 'pvr.iptvsimple', 'enabled': enabled}})) + xbmc.sleep(3000) except: show_notification(addon.getLocalizedString(30324))