Fix Thumb in channelselector
This commit is contained in:
@@ -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):
|
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')
|
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:
|
if 'http' in thumbnail:
|
||||||
thumbnail = thumbnail.replace('\\','/')
|
thumbnail = thumbnail.replace('\\','/')
|
||||||
return thumbnail
|
return thumbnail
|
||||||
|
|||||||
Reference in New Issue
Block a user