Fixes thumbnails on channel won't load

This commit is contained in:
pluja 2020-09-26 14:19:03 +02:00
parent 1c02914b90
commit 30ab9183bb

View File

@ -302,7 +302,7 @@ def channel(id):
print(video)
if config['nginxVideoStream']:
hostName = urllib.parse.urlparse(video['videoThumb']).netloc
video['videoThumb'] = video['videoThumb'].replace("https://{}".format(hostName), "").replace("hqdefault", "mqdefault")+"?host="+hostName
video['videoThumb'] = video['videoThumb'].replace("https://{}".format(hostName), "").replace("hqdefault", "mqdefault")+"&host="+hostName
else:
video['videoThumb'] = video['videoThumb'].replace('/', '~')
if config['nginxVideoStream']: