Skip to content
This repository has been archived by the owner on Feb 3, 2024. It is now read-only.

Commit

Permalink
Merge branch 'zedeus:guest_accounts' into guest_accounts
Browse files Browse the repository at this point in the history
  • Loading branch information
spectrapulse authored Jan 12, 2024
2 parents 2cf1000 + 52db03b commit ca8bfdb
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/utils.nim
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit ca8bfdb

Please sign in to comment.