diff --git a/addon.xml b/addon.xml index 2ecb7c9..1adc21b 100644 --- a/addon.xml +++ b/addon.xml @@ -1,5 +1,5 @@ - + @@ -42,6 +42,8 @@ 1.3.4: - Einstellung hinzugefügt, um immer den Puls4 Key bei abfragen aus der Mediathek zu verwenden. Zum zeitpunkt des releases dieser Version bekommt man somit Videos mit höherer Auflösung - Einstellung hinzugefügt, um Videos wie der Webplayer auf der prosiebenmaxx Webseite abzurufen. Dies ist langsamer, resultiert aber manchmal mit höher Aufgelösten Videos +1.3.5: +- Fehler mit kodi 19.3 auf Android beim öffnen der LEv Section behoben resources/icon.png diff --git a/changelog.txt b/changelog.txt index 9f3f2a1..1fbf2bf 100644 --- a/changelog.txt +++ b/changelog.txt @@ -61,4 +61,6 @@ v1.3.3: v1.3.4: - add option to always use the puls4 request key on vod content. as of release of this version this results in higher resolution videos - add option to request videos like the player on the prosiebenmaxx website, this is slower, but sometimes gives higher resolution videos +v1.3.5: +- fix error with kodi 19.3 on android, opening the live section diff --git a/resources/lib/plugin.py b/resources/lib/plugin.py index 64bcd2a..206db2b 100644 --- a/resources/lib/plugin.py +++ b/resources/lib/plugin.py @@ -151,17 +151,21 @@ def show_category(category_id): channels = json.loads(result) streams = [] if multiprocess: - threads = [] - pool = ThreadPool(processes=len(channels['response']['data'])) - for brand in channels['response']['data']: - thread = pool.apply_async(get_livestream, (brand['channelId'], brand['title'], brand['id'])) - thread.name = brand['channelId'] - thread.daemon = True - threads.append(thread) - for thread in threads: - streams.append(thread.get()) - pool.close() - pool.join() + try: + threads = [] + pool = ThreadPool(processes=len(channels['response']['data'])) + for brand in channels['response']['data']: + thread = pool.apply_async(get_livestream, (brand['channelId'], brand['title'], brand['id'])) + thread.name = brand['channelId'] + thread.daemon = True + threads.append(thread) + for thread in threads: + streams.append(thread.get()) + pool.close() + pool.join() + except ImportError as e: + for brand in channels['response']['data']: + streams.append(get_livestream(brand['channelId'], brand['title'], brand['id'])) else: for brand in channels['response']['data']: streams.append(get_livestream(brand['channelId'], brand['title'], brand['id']))