From 7f1a8f768be725f65fb09e085e84d84dd202253a Mon Sep 17 00:00:00 2001 From: Alhaziel Date: Wed, 11 Dec 2019 19:12:00 +0100 Subject: [PATCH 1/2] Fix Thumb in channelselector --- channelselector.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/channelselector.py b/channelselector.py index 8ff4aa0e..35611e18 100644 --- a/channelselector.py +++ b/channelselector.py @@ -187,7 +187,10 @@ def get_thumb(thumb_name, view="thumb_", auto=False): if config.get_setting('enable_custom_theme') and config.get_setting('custom_theme') and os.path.isfile(config.get_setting('custom_theme') + view + thumb_name): media_path = config.get_setting('custom_theme') - thumbnail = os.path.join(media_path, view + thumb_name) + if thumb_name.startswith('http'): + thumbnail = thumb_name + else: + thumbnail = os.path.join(media_path, view + thumb_name) if 'http' in thumbnail: thumbnail = thumbnail.replace('\\','/') return thumbnail From 3b04a93363373f5bcb696ad79325df9c72867f06 Mon Sep 17 00:00:00 2001 From: Alhaziel Date: Thu, 12 Dec 2019 15:18:38 +0100 Subject: [PATCH 2/2] Fix Thumbnails in ChanneltoolsDB --- core/channeltoolsDB.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/channeltoolsDB.py b/core/channeltoolsDB.py index 49e222f1..a62cf565 100644 --- a/core/channeltoolsDB.py +++ b/core/channeltoolsDB.py @@ -22,7 +22,7 @@ def filter(category, language='all', adult=False): if channel[col] and col in ['categories', 'language']: el[col] = channel[col].split(',') elif col == 'thumbnail': # remote thumbnail - el[col] = os.path.join(thumb_path, 'resources', "thumb", channel[col]) + el[col] = channel[col] if channel[col].startswith('http') else os.path.join(thumb_path, 'resources', "thumb", channel[col]) elif channel[col]: el[col] = channel[col] else: