From 2a3668a645c94a718622eb5263857a029b3dc55b Mon Sep 17 00:00:00 2001 From: pluja Date: Thu, 10 Sep 2020 09:31:11 +0200 Subject: [PATCH] Change url on line 325 to use config variable --- app/routes.py | 2 +- yotter-config.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/routes.py b/app/routes.py index ab464e2..a295c6c 100644 --- a/app/routes.py +++ b/app/routes.py @@ -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'])), diff --git a/yotter-config.json b/yotter-config.json index 434d077..f0a82b4 100644 --- a/yotter-config.json +++ b/yotter-config.json @@ -1,5 +1,5 @@ { - "serverName": "Yotter.xyz", + "serverName": "yotter.xyz", "nitterInstance": "https://nitter.net/", "maxInstanceUsers": 30, "serverLocation": "Germany",