mirror of
https://github.com/zedeus/nitter
synced 2026-09-05 22:59:31 +00:00
Restrict image/gif media host instead of hashing
This commit is contained in:
parent
ec43987363
commit
9c91688497
7 changed files with 65 additions and 25 deletions
|
|
@ -77,7 +77,7 @@ proc stripTwitterUrls*(text: string): string =
|
|||
proc proxifyVideo*(manifest: string; proxy: bool): string =
|
||||
proc cb(m: RegexMatch; s: string): string =
|
||||
result = "https://video.twimg.com" & s[m.group(0)[0]]
|
||||
if proxy: result = result.getSigUrl("video")
|
||||
if proxy: result = getVidUrl(result)
|
||||
result = manifest.replace(re"(.+(.ts|.m3u8|.vmap))", cb)
|
||||
|
||||
proc getUserpic*(userpic: string; style=""): string =
|
||||
|
|
|
|||
Loading…
Reference in a new issue