Prepend "https://" to relative rss links
This commit is contained in:
parent
fe15003665
commit
a3303d6bef
|
@ -28,7 +28,7 @@ proc replaceUrl*(url: string; prefs: Prefs; rss=false): string =
|
||||||
if prefs.replaceTwitter.len > 0:
|
if prefs.replaceTwitter.len > 0:
|
||||||
result = result.replace(twRegex, prefs.replaceTwitter)
|
result = result.replace(twRegex, prefs.replaceTwitter)
|
||||||
if rss:
|
if rss:
|
||||||
result = result.replace("href=\"/", "href=\"" & hostname & "/")
|
result = result.replace("href=\"/", "href=\"https://" & hostname & "/")
|
||||||
|
|
||||||
proc proxifyVideo*(manifest: string; proxy: bool): string =
|
proc proxifyVideo*(manifest: string; proxy: bool): string =
|
||||||
proc cb(m: RegexMatch; s: string): string =
|
proc cb(m: RegexMatch; s: string): string =
|
||||||
|
|
Loading…
Reference in New Issue