From 30ab9183bb424667c56eac823b4a5e8a2e94d1be Mon Sep 17 00:00:00 2001 From: pluja Date: Sat, 26 Sep 2020 14:19:03 +0200 Subject: [PATCH] Fixes thumbnails on channel won't load --- app/routes.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/routes.py b/app/routes.py index b9791ad..c1d4a11 100644 --- a/app/routes.py +++ b/app/routes.py @@ -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']: @@ -310,7 +310,7 @@ def channel(id): channelData[0]['avatar'] = channelData[0]['avatar'].replace("https://{}".format(hostName), "")+"?host="+hostName else: channelData[0]['avatar'] = channelData[0]['avatar'].replace('/', '~') - + return render_template('channel.html', form=form, btform=button_form, channel=channelData[0], videos=channelData[1], restricted=config['restrictPublicUsage'], config=config) @app.route('/watch', methods=['GET'])