Default to Piped instead of Invidious

This commit is contained in:
Zed 2021-07-18 02:15:22 +02:00
parent 669aa2cd8b
commit 2422a2b8b7
3 changed files with 7 additions and 7 deletions

View File

@ -32,7 +32,7 @@ tokenCount = 10
[Preferences] [Preferences]
theme = "Nitter" theme = "Nitter"
replaceTwitter = "nitter.net" replaceTwitter = "nitter.net"
replaceYouTube = "invidio.us" replaceYouTube = "piped.kavin.rocks"
replaceInstagram = "" replaceInstagram = ""
proxyVideos = true proxyVideos = true
hlsPlayback = false hlsPlayback = false

View File

@ -54,9 +54,9 @@ genPrefs:
"Replace Twitter links with Nitter (blank to disable)" "Replace Twitter links with Nitter (blank to disable)"
placeholder: "Nitter hostname" placeholder: "Nitter hostname"
replaceYouTube(input, "invidious.snopyta.org"): replaceYouTube(input, "piped.kavin.rocks"):
"Replace YouTube links with Invidious (blank to disable)" "Replace YouTube links with Piped/Invidious (blank to disable)"
placeholder: "Invidious hostname" placeholder: "Piped hostname"
replaceInstagram(input, ""): replaceInstagram(input, ""):
"Replace Instagram links with Bibliogram (blank to disable)" "Replace Instagram links with Bibliogram (blank to disable)"

View File

@ -69,7 +69,7 @@ Twitter feed for: ${desc}. Generated by ${cfg.hostname}
#end proc #end proc
# #
#proc renderTimelineRss*(timeline: Timeline; profile: Profile; cfg: Config; multi=false): string = #proc renderTimelineRss*(timeline: Timeline; profile: Profile; cfg: Config; multi=false): string =
#let prefs = Prefs(replaceTwitter: cfg.hostname, replaceYouTube: "invidious.snopyta.org") #let prefs = Prefs(replaceTwitter: cfg.hostname, replaceYouTube: "piped.kavin.rocks")
#let urlPrefix = getUrlPrefix(cfg) #let urlPrefix = getUrlPrefix(cfg)
#result = "" #result = ""
#let user = (if multi: "" else: "@") & profile.username #let user = (if multi: "" else: "@") & profile.username
@ -101,7 +101,7 @@ ${renderRssTweets(timeline.content, prefs, cfg)}
#end proc #end proc
# #
#proc renderListRss*(tweets: seq[Tweet]; list: List; cfg: Config): string = #proc renderListRss*(tweets: seq[Tweet]; list: List; cfg: Config): string =
#let prefs = Prefs(replaceTwitter: cfg.hostname, replaceYouTube: "invidious.snopyta.org") #let prefs = Prefs(replaceTwitter: cfg.hostname, replaceYouTube: "piped.kavin.rocks")
#let link = &"{getUrlPrefix(cfg)}/{list.username}/lists/{list.name}" #let link = &"{getUrlPrefix(cfg)}/{list.username}/lists/{list.name}"
#result = "" #result = ""
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
@ -119,7 +119,7 @@ ${renderRssTweets(tweets, prefs, cfg)}
#end proc #end proc
# #
#proc renderSearchRss*(tweets: seq[Tweet]; name, param: string; cfg: Config): string = #proc renderSearchRss*(tweets: seq[Tweet]; name, param: string; cfg: Config): string =
#let prefs = Prefs(replaceTwitter: cfg.hostname, replaceYouTube: "invidious.snopyta.org") #let prefs = Prefs(replaceTwitter: cfg.hostname, replaceYouTube: "piped.kavin.rocks")
#let link = &"{getUrlPrefix(cfg)}/search" #let link = &"{getUrlPrefix(cfg)}/search"
#let escName = xmltree.escape(name) #let escName = xmltree.escape(name)
#result = "" #result = ""