1.0.0+kodimov.11: Movistar's channel numbers with more than one IPTV Simple instance
- Kodi only lets "use channel numbers from backend" be read or changed while it applies: one PVR instance loaded, or several and "always" on. With a second instance (Radios de Vigo, a leftover empty one) it refused the setting the TV guide setup made, and numbered the channels 1, 2, 3... - The service now checks it every 30 minutes and after the setup: if the setting is hidden it turns "always" on, and it turns the setting on once (marker file numbers-set). It never turns anything off, and turning it off by hand afterwards is respected. Existing setups are put right this way. - KodiMov+ and Radios de Vigo take turns to restart IPTV Simple, through the pvr.iptvsimple.restarting property of Kodi's home window. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This commit is contained in:
1 parent
e72e3d4902
commit
b3bc561c35
5 files changed
+88
-9
No files matched your search
@@ -35,6 +35,7 @@ if __name__ == '__main__':
|
||||
pvr_dir = translatePath(xbmcaddon.Addon('pvr.iptvsimple').getAddonInfo('profile'))
|
||||
restart_iptv = kodimov.set_iptv_refresh(pvr_dir, 'kodimovplus')
|
||||
except RuntimeError: # IPTV Simple not installed or disabled
|
||||
pvr_dir = None
|
||||
restart_iptv = False
|
||||
player = xbmc.Player()
|
||||
monitor = xbmc.Monitor()
|
||||
@@ -47,6 +48,10 @@ if __name__ == '__main__':
|
||||
if time.time() >= next_check:
|
||||
next_check = time.time() + 30 * 60
|
||||
exporting = False
|
||||
# Movistar's channel numbers in Kodi's TV section, also when another
|
||||
# add-on (Radios de Vigo) adds its own IPTV Simple instance
|
||||
if pvr_dir and kodimov.has_iptv_instance(pvr_dir, 'kodimovplus'):
|
||||
kodimov.ensure_channel_numbers(os.path.join(profile_dir, 'numbers-set'))
|
||||
age_limit, max_age = max_age, 6 * 3600 - 120
|
||||
# After Kodi starts (or this add-on updates) also get the new guide into Kodi now
|
||||
reload_guide = '&reload_guide=1' if age_limit == 0 else ''
|
||||
|
||||
Reference in new issue
Block a user