mirror of
https://github.com/zedeus/nitter.git
synced 2024-12-22 18:25:29 +00:00
parent
6c6386913e
commit
8a6fbe81ab
|
@ -87,7 +87,7 @@ proc proxifyVideo*(manifest: string; proxy: bool): string =
|
|||
let url =
|
||||
if line.startsWith("#EXT-X-MAP:URI"): line[16 .. ^2]
|
||||
else: line
|
||||
if url[0] == '/':
|
||||
if url.startsWith('/'):
|
||||
let path = "https://video.twimg.com" & url
|
||||
replacements.add (url, if proxy: path.getVidUrl else: path)
|
||||
return manifest.multiReplace(replacements)
|
||||
|
|
Loading…
Reference in a new issue