Change url on line 325 to use config variable
This commit is contained in:
parent
d01e418c2f
commit
2a3668a645
@ -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'])),
|
||||
|
@ -1,5 +1,5 @@
|
||||
{
|
||||
"serverName": "Yotter.xyz",
|
||||
"serverName": "yotter.xyz",
|
||||
"nitterInstance": "https://nitter.net/",
|
||||
"maxInstanceUsers": 30,
|
||||
"serverLocation": "Germany",
|
||||
|
Reference in New Issue
Block a user