From b45a98df8f8ed258f2928939d8613deea4e967ee Mon Sep 17 00:00:00 2001 From: pihug12 Date: Tue, 2 Jan 2024 01:01:38 +0100 Subject: [PATCH] [service.iptv.manager] 0.2.4+matrix.1 --- service.iptv.manager/CHANGELOG.md | 8 ++++++++ service.iptv.manager/addon.xml | 12 +++++------- .../resources/lib/modules/iptvsimple.py | 10 ++++++++++ 3 files changed, 23 insertions(+), 7 deletions(-) diff --git a/service.iptv.manager/CHANGELOG.md b/service.iptv.manager/CHANGELOG.md index 5055aff8e..acb8cde2b 100644 --- a/service.iptv.manager/CHANGELOG.md +++ b/service.iptv.manager/CHANGELOG.md @@ -1,5 +1,13 @@ # Changelog +## [v0.2.4](https://github.com/add-ons/service.iptv.manager/tree/v0.2.4) (2023-12-02) + +[Full Changelog](https://github.com/add-ons/service.iptv.manager/compare/v0.2.3...v0.2.4) + +**Fixed bugs:** + +- Fix for Configure IPTV automatically [\#109](https://github.com/add-ons/service.iptv.manager/pull/109) + ## [v0.2.3](https://github.com/add-ons/service.iptv.manager/tree/v0.2.3) (2021-02-04) [Full Changelog](https://github.com/add-ons/service.iptv.manager/compare/v0.2.2...v0.2.3) diff --git a/service.iptv.manager/addon.xml b/service.iptv.manager/addon.xml index 7d3a0d2b3..091748f24 100644 --- a/service.iptv.manager/addon.xml +++ b/service.iptv.manager/addon.xml @@ -1,5 +1,5 @@ - + @@ -25,19 +25,17 @@ Интеграция IPTV каналов из других дополнений в Kodi PVR Más kiegészítők által szolgáltatott IPTV csatornák integrációja a Kodi PVR felületbe Ενσωμάτωση καναλιών IPTV από άλλα πρόσθετα στο PVR του Kodi + Intégrer les chaînes IPTV des autres extensions dans les menus Kodi TV et Radio IPTV Manager integrates IPTV channels from other add-ons in the Kodi TV and Radio menus. IPTV Manager integreert IPTV kanalen van andere add-ons in de Kodi TV en Radio menu's. Это дополнение интегрирует IPTV каналы из других дополнений в Kodi PVR. Ez a kiegészítő lehetővé teszi más kiegészítők számára, hogy saját IPTV csatornákat publikáljanak a Kodi PVR felületébe. Το πρόσθετο αυτο ενσωματώνει τα κανάλια IPTV από άλλα πρόσθετα στο PVR του Kodi. + IPTV Manager intègre les chaînes IPTV des autres extensions dans les menus Kodi TV et Radio. all GPL-3.0-only - v0.2.3 (2021-02-04) -- Allow to process raw m3u8 or xmltv data. -- Add support for #KODIPROP. -- Support multiple groups for a channel. -- Improvements for Kodi Matrix. -- Update translations. + v0.2.4 (2023-12-02) +- Fix for Configure IPTV automatically. https://github.com/add-ons/service.iptv.manager resources/icon.png diff --git a/service.iptv.manager/resources/lib/modules/iptvsimple.py b/service.iptv.manager/resources/lib/modules/iptvsimple.py index 23cf48191..778622530 100644 --- a/service.iptv.manager/resources/lib/modules/iptvsimple.py +++ b/service.iptv.manager/resources/lib/modules/iptvsimple.py @@ -12,6 +12,8 @@ from resources.lib import kodiutils +import xbmcvfs, glob, shutil + _LOGGER = logging.getLogger(__name__) IPTV_SIMPLE_ID = 'pvr.iptvsimple' @@ -65,6 +67,14 @@ def setup(cls): # Activate IPTV Simple cls._activate() + # If iptv simple uses another name than settings.xml for the configuration file then copy the generated settings.xml to that other name + path = xbmcvfs.translatePath(addon.getAddonInfo('profile')) + settingsxml = path + 'settings.xml' + if os.path.isfile(settingsxml): + for f in glob.glob(path + "*.xml"): + if os.path.basename(f) != 'settings.xml': + shutil.copyfile(settingsxml, f) + return True @classmethod