Fix Thumbnails in ChanneltoolsDB

This commit is contained in:
Alhaziel
2019-12-12 15:18:38 +01:00
parent 7f1a8f768b
commit 3b04a93363

View File

@@ -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: