From 09d6a68f748f82f63633609b97adbf3ba4c1146f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Xos=C3=A9?= Date: Tue, 10 Nov 2026 08:08:57 +0100 Subject: [PATCH] 1.0.0+kodimov.6: keep refreshing the programme guide on boxes set up with kodimov.1 kodimov.1 shipped the automatic guide export off. Kodi stored that value, so the later default of on never applied and only the channel list was refreshed; the 2-day guide ran out. Rename the setting so the new default applies, and turn it on from the one-tap TV guide setup. Co-Authored-By: Claude Opus 5.5 --- addon.xml | 5 +++-- resources/lib/plugin.py | 2 ++ resources/settings.xml | 3 ++- service.py | 2 +- 4 files changed, 8 insertions(+), 4 deletions(-) diff --git a/addon.xml b/addon.xml index f2185fc..1dd002e 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.5: TV guide setup writes the programme guide before creating the IPTV Simple settings, so the guide isn't empty on a new box. + 1.0.0+kodimov.6: the programme guide refreshes on its own again on boxes first set up with kodimov.1, where the automatic guide export had stayed off (the guide ran out after 2 days). +1.0.0+kodimov.5: TV guide setup writes the programme guide before creating the IPTV Simple settings, so the guide isn't empty on a new box. 1.0.0+kodimov.4: first login on a new box needs no password from the Movistar home network: the account is found and the box registered automatically. 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. diff --git a/resources/lib/plugin.py b/resources/lib/plugin.py index e637aa1..a22f0cf 100644 --- a/resources/lib/plugin.py +++ b/resources/lib/plugin.py @@ -770,6 +770,8 @@ def create_iptv_settings(): show_notification(addon.getLocalizedString(30509)) # Log in first return save_iptv_settings(filename, 'KodiMov+', 'kodimovplus', epg_url) + # IPTV Simple now reads epg.xml, so the service must keep it up to date. + addon.setSettingBool('auto_export_epg', True) # 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}})) diff --git a/resources/settings.xml b/resources/settings.xml index 9b76087..1e5e4c5 100644 --- a/resources/settings.xml +++ b/resources/settings.xml @@ -62,7 +62,8 @@ --> - + + diff --git a/service.py b/service.py index 958c9b6..2ce0e98 100644 --- a/service.py +++ b/service.py @@ -47,7 +47,7 @@ if __name__ == '__main__': break if time.time() >= next_export: next_export = time.time() + 6 * 3600 - if addon.getSettingBool('export_epg'): # channels + programme guide + if addon.getSettingBool('auto_export_epg'): # channels + programme guide xbmc.executebuiltin('RunPlugin(plugin://plugin.video.kodimovplus/?action=export_epg_now&quiet=1)') elif addon.getSettingBool('export_channels'): xbmc.executebuiltin('RunPlugin(plugin://plugin.video.kodimovplus/?action=export_channels_now)')