1.0.0+kodimov.3: one-tap TV guide setup
"Create settings for IPTV Simple" now also: - turns on Kodi's "use backend channel numbers", so the guide shows Movistar's numbers - reloads the channel list daily at 04:00 - restarts IPTV Simple so the new setup loads without restarting Kodi and writes valid XML (the catch-up format had a bare &). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
119002fbbf
commit
c4a0a7e97d
5 files changed
+13
-4
No files matched your search
@@ -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))
|
||||
|
||||
|
||||
Reference in new issue
Block a user