Fixes thumbnails on channel won't load
This commit is contained in:
parent
1c02914b90
commit
30ab9183bb
@ -302,7 +302,7 @@ def channel(id):
|
|||||||
print(video)
|
print(video)
|
||||||
if config['nginxVideoStream']:
|
if config['nginxVideoStream']:
|
||||||
hostName = urllib.parse.urlparse(video['videoThumb']).netloc
|
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:
|
else:
|
||||||
video['videoThumb'] = video['videoThumb'].replace('/', '~')
|
video['videoThumb'] = video['videoThumb'].replace('/', '~')
|
||||||
if config['nginxVideoStream']:
|
if config['nginxVideoStream']:
|
||||||
@ -310,7 +310,7 @@ def channel(id):
|
|||||||
channelData[0]['avatar'] = channelData[0]['avatar'].replace("https://{}".format(hostName), "")+"?host="+hostName
|
channelData[0]['avatar'] = channelData[0]['avatar'].replace("https://{}".format(hostName), "")+"?host="+hostName
|
||||||
else:
|
else:
|
||||||
channelData[0]['avatar'] = channelData[0]['avatar'].replace('/', '~')
|
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)
|
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'])
|
@app.route('/watch', methods=['GET'])
|
||||||
|
Reference in New Issue
Block a user