SigHelper: Small fixes + suggestions from code review

This commit is contained in:
Samantaz Fox
2024-07-31 12:17:47 +02:00
parent 61d75050e4
commit 3b7e45b7bc
3 changed files with 11 additions and 16 deletions

View File

@@ -101,7 +101,7 @@ struct Video
# Methods for parsing streaming data
def convert_url(fmt)
if cfr = fmt["signatureCipher"]?.try { |h| HTTP::Params.parse(h.as_s) }
if cfr = fmt["signatureCipher"]?.try { |json| HTTP::Params.parse(json.as_s) }
sp = cfr["sp"]
url = URI.parse(cfr["url"])
params = url.query_params