Prepend "https://" to relative rss links

This commit is contained in:
Zed 2019-10-10 12:16:50 +02:00
parent fe15003665
commit a3303d6bef
1 changed files with 1 additions and 1 deletions

View File

@ -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 =