1.0.0+kodimov.12: no duplicate TV guide instance; retry the web player registration

- The TV guide setup always wrote instance-settings-91.xml, so on a box
  already set up with another instance (from the original add-on) both read
  channels.m3u8 and every channel showed twice. The setup now rewrites the
  instance that already reads the list, and the service deletes extra ones
  at start (keeps the one that isn't 91, which holds what was watched) and
  restarts IPTV Simple when nothing plays.
- The web player registration for the new servers got one 401 error page
  and gave up, and the TV guide list then lacked LALIGA, DAZN LALIGA and
  Liga de Campeones until the next export 6 hours later. The registration
  is tried 3 times, and after a failure the service exports the list again
  every half hour, up to 6 times.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
XoséandClaude Opus 5.5 committed 2026-11-13 14:38:12 +01:00
1 parent b3bc561c35
commit 69a37ff064
5 files changed
+71 -8

No files matched your search

+5
View File
@@ -781,6 +781,11 @@ def create_iptv_settings():
pvr_dir = translatePath(pvr_addon.getAddonInfo('profile'))
LOG('pvr_dir: {}'.format(pvr_dir))
filename = os.path.join(pvr_dir, output_file)
if kodi_version > 19:
# Rewrite the instance that already reads this add-on's list, if any:
# a second one would show every channel twice
existing = kodimov.iptv_instance_files(pvr_dir, 'kodimovplus')
if existing: filename = existing[0]
if os.path.exists(filename):
res = xbmcgui.Dialog().yesno(addon.getLocalizedString(30322), addon.getLocalizedString(30323))
if res == False: return