mirror of
https://github.com/zedeus/nitter
synced 2026-09-05 22:59:31 +00:00
Simplify error parser
This commit is contained in:
parent
2642e5efe4
commit
2fa76db099
4 changed files with 8 additions and 7 deletions
|
|
@ -22,6 +22,7 @@ proc getHmac*(data: string): string =
|
|||
($hmac(sha256, hmacKey, data))[0 .. 12]
|
||||
|
||||
proc getVidUrl*(link: string): string =
|
||||
if link.len == 0: return
|
||||
let
|
||||
sig = getHmac(link)
|
||||
url = encodeUrl(link)
|
||||
|
|
|
|||
Loading…
Reference in a new issue