From 0afd59056f26371f2855773d3706fadf5290ed5b Mon Sep 17 00:00:00 2001 From: Ben Busby Date: Sat, 28 Nov 2020 12:11:47 -0500 Subject: [PATCH] Hotfix: update invidious url, remove www from link The invidious instance has been updated to invidious.snopyta.org, since this instance is more reliable and has more users according to instances.invidio.us All site alternative redirects now redirect without the 'www' subdomain, since most of the alternative sites don't have this subdomain set up. --- app/utils/filter_utils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/utils/filter_utils.py b/app/utils/filter_utils.py index c8f2447..7ff99c6 100644 --- a/app/utils/filter_utils.py +++ b/app/utils/filter_utils.py @@ -18,7 +18,7 @@ BLACKLIST = [ SITE_ALTS = { 'twitter.com': 'nitter.net', - 'youtube.com': 'invidiou.site', + 'youtube.com': 'invidious.snopyta.org', 'instagram.com': 'bibliogram.art/u' } @@ -43,7 +43,7 @@ def get_site_alt(link: str): link = link.replace(site_key, SITE_ALTS[site_key]) break - return link + return link.replace('www.', '') def filter_link_args(query_link):