mirror of
https://github.com/zedeus/nitter.git
synced 2024-12-23 00:25:36 +00:00
Fix broken video playback by forcing fmp4
This commit is contained in:
parent
583c858cdf
commit
52db03b73a
|
@ -31,7 +31,9 @@ proc getHmac*(data: string): string =
|
|||
|
||||
proc getVidUrl*(link: string): string =
|
||||
if link.len == 0: return
|
||||
let sig = getHmac(link)
|
||||
let
|
||||
link = link.replace("cmaf", "fmp4")
|
||||
sig = getHmac(link)
|
||||
if base64Media:
|
||||
&"/video/enc/{sig}/{encode(link, safe=true)}"
|
||||
else:
|
||||
|
|
Loading…
Reference in a new issue