Change url on line 325 to use config variable

This commit is contained in:
pluja 2020-09-10 09:31:11 +02:00
parent d01e418c2f
commit 2a3668a645
2 changed files with 2 additions and 2 deletions

View File

@ -322,7 +322,7 @@ def watch():
info = ytvids.get_video_info(id)
hostName = urllib.parse.urlparse(info['video']['url']).netloc
# Use nginx
url = info['video']['url'].replace(hostName, "yotter.xyz")+"&hostname="+hostName
url = info['video']['url'].replace(hostName, config['serverName'])+"&hostname="+hostName
video={
'title':info['video']['title'],
'description':Markup(markupString(info['video']['description'])),

View File

@ -1,5 +1,5 @@
{
"serverName": "Yotter.xyz",
"serverName": "yotter.xyz",
"nitterInstance": "https://nitter.net/",
"maxInstanceUsers": 30,
"serverLocation": "Germany",