From 3940d1b3e6d9c3b4c23de81496611f714fbd1c5e Mon Sep 17 00:00:00 2001 From: xocko Date: Sat, 7 Nov 2026 12:31:41 +0100 Subject: [PATCH] 1.0.0+kodimov.5: write the programme guide before creating the TV guide "Create settings for IPTV Simple" created the IPTV Simple instance and then exported channels and EPG. IPTV Simple could load before epg.xml existed, Kodi then stored an empty guide for every channel and didn't ask again for hours (seen on a fresh box). Export first, and stop with an error if the guide file wasn't written. Co-Authored-By: Claude Opus 5.5 --- addon.xml | 5 +++-- .../lib/__pycache__/plugin.cpython-315.pyc | Bin 56823 -> 57107 bytes resources/lib/plugin.py | 8 +++++++- 3 files changed, 10 insertions(+), 3 deletions(-) diff --git a/addon.xml b/addon.xml index 6e9982c..f2185fc 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.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.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. 1.0.0+kodimov.1: first KodiMov+ release, based on Movistar+ 1.0.0. diff --git a/resources/lib/__pycache__/plugin.cpython-315.pyc b/resources/lib/__pycache__/plugin.cpython-315.pyc index abf2ebde8a3894cb482ff9a5a20a40a4e950fbcd..db252e872c8428ea3f0b8deb872998d6167ec718 100644 GIT binary patch delta 805 zcmYk2ZAepL6vv-u+r7H&y41V5xjEe=l+}D`sEaaRQdUA@H(XyNtYC_vn_dTv`dS~P z4+e(}QINni))eEaAYvgzg{I&O&CMB=q!dw5LNp?J9*5NVaL&Uyzvq8me$L9_sa$hG zlcGYz%-pwYGxwfo?u^JL71F@SMH$z0loqHt5X_9`L-r#c=0_b|lRc3}NKirAfB_z| zMewIz2}&KOw<0&nL2gFigcP^Tp-7-+u()!u18^|MsSyqdsh6;jCZr3zpcQmN#(8Cd ztU%$w3HTtIkzjI>RBZ!7z9g`^tOW;DM4?7amO4PzGJ4TA5%3 zYp`a2z>c6EXTj}YKpju=bhZ`-I@;U(5D!kXHkqr@mIbqqZ}Cx$C(!8={mq1E_WG`i zegvmNhoLJ}jaNVl*;Q}JpkHMObuYuGP&v+oys`ULd&!95*A?2BI;Gdy8?brA_KOsDlEyehHO>7~B$HOy?2IZ`F>gjbFYuqDmmT^N|G!$$Zx zS)zPLisB-1kT-Si@_X`#rv0~=-`7mG7k`j8HdfrB@Mr2?l7#qy(j48trLEoLz0%xi|C&bs5s?)D1bdOZ79qQt>vNS(w(*DvFOSlp4)7aK7F zT3?T{2>`T9os67Z^Q6?Xw4zLo6PS>3xEij(42*=o;5fiW8D?Q&qcWY6HibAy+f!6z zz!b@1c#9@iZA;xOg3a|$vwv8&j7gB_HCGQ3Ry5O?o7`!M&_h8_ z(H}Zd4@FO5piPlq?qN|O6cUvrMYy3joib*}Z5kQH6KONfIsX>wTBcHpt0K1>d&w$7dlgt#St zi`&5_coBQU4H^=5j6XSr6|r(t${6hHj~I5HP`A8m0S;Vw|2QWL;I_$bjl`F(Rv%4H<>jV1%*ixfnyv!{$EUwT8i$j+K!Xd( z+A2Z174|^17bsJBfO)wW6(2_omzgakv)(W>^W;PIMCv8LXDpi82UFNQa~JY)Y37zM z(_cJScFLrX6!MuWc2y)ch?rP4m0QylIolfw9$=*$;W-j*QWLY)u+a{?SN14Sy{fl> WXT__Bs+H1qfK98-vI`0_5`O?Kdetrf diff --git a/resources/lib/plugin.py b/resources/lib/plugin.py index 1dc5932..b4e3ce5 100644 --- a/resources/lib/plugin.py +++ b/resources/lib/plugin.py @@ -762,11 +762,17 @@ def create_iptv_settings(): if os.path.exists(filename): res = xbmcgui.Dialog().yesno(addon.getLocalizedString(30322), addon.getLocalizedString(30323)) if res == False: return + # Write the channel list and the programme guide first: if IPTV Simple + # starts before epg.xml exists, Kodi stores an empty guide for every + # channel and doesn't ask again for hours. + export_epg_now() + if not os.path.exists(os.path.join(profile_dir, 'epg.xml')): + show_notification(addon.getLocalizedString(30324)) + 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',