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
@@ -794,11 +794,15 @@ def create_iptv_settings():
|
||||
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}}))
|
||||
# Restart IPTV Simple so it loads the new instance and channel list.
|
||||
kodimov.restart_iptv_simple()
|
||||
# Show Movistar's own channel numbers instead of 1, 2, 3... Kodi only
|
||||
# accepts it once IPTV Simple is back; the service keeps trying otherwise.
|
||||
numbers_set = os.path.join(profile_dir, 'numbers-set')
|
||||
if os.path.exists(numbers_set): os.remove(numbers_set)
|
||||
for _ in range(5):
|
||||
if kodimov.ensure_channel_numbers(numbers_set): break
|
||||
xbmc.sleep(2000)
|
||||
except:
|
||||
show_notification(addon.getLocalizedString(30324))
|
||||
|
||||
|
||||
Reference in new issue
Block a user