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)
|
info = ytvids.get_video_info(id)
|
||||||
hostName = urllib.parse.urlparse(info['video']['url']).netloc
|
hostName = urllib.parse.urlparse(info['video']['url']).netloc
|
||||||
# Use nginx
|
# Use nginx
|
||||||
url = info['video']['url'].replace(hostName, "yotter.xyz")+"&hostname="+hostName
|
url = info['video']['url'].replace(hostName, config['serverName'])+"&hostname="+hostName
|
||||||
video={
|
video={
|
||||||
'title':info['video']['title'],
|
'title':info['video']['title'],
|
||||||
'description':Markup(markupString(info['video']['description'])),
|
'description':Markup(markupString(info['video']['description'])),
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
{
|
{
|
||||||
"serverName": "Yotter.xyz",
|
"serverName": "yotter.xyz",
|
||||||
"nitterInstance": "https://nitter.net/",
|
"nitterInstance": "https://nitter.net/",
|
||||||
"maxInstanceUsers": 30,
|
"maxInstanceUsers": 30,
|
||||||
"serverLocation": "Germany",
|
"serverLocation": "Germany",
|
||||||
|
Reference in New Issue
Block a user