Simplify error parser

This commit is contained in:
Zed
2020-06-01 21:53:21 +02:00
parent 2642e5efe4
commit 2fa76db099
4 changed files with 8 additions and 7 deletions

View File

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