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.
main
Ben Busby 2020-11-28 12:11:47 -05:00
parent 0d0f32d108
commit 0afd59056f
No known key found for this signature in database
GPG Key ID: 3B08611DF6E62ED2
1 changed files with 2 additions and 2 deletions

View File

@ -18,7 +18,7 @@ BLACKLIST = [
SITE_ALTS = { SITE_ALTS = {
'twitter.com': 'nitter.net', 'twitter.com': 'nitter.net',
'youtube.com': 'invidiou.site', 'youtube.com': 'invidious.snopyta.org',
'instagram.com': 'bibliogram.art/u' 'instagram.com': 'bibliogram.art/u'
} }
@ -43,7 +43,7 @@ def get_site_alt(link: str):
link = link.replace(site_key, SITE_ALTS[site_key]) link = link.replace(site_key, SITE_ALTS[site_key])
break break
return link return link.replace('www.', '')
def filter_link_args(query_link): def filter_link_args(query_link):