Videos: Send player sts when required

This commit is contained in:
Samantaz Fox
2024-07-03 21:15:13 +02:00
parent b509aa91d5
commit 10e5788c21
2 changed files with 27 additions and 6 deletions

View File

@@ -34,4 +34,13 @@ struct Invidious::DecryptFunction
LOGGER.trace(ex.inspect_with_backtrace)
return nil
end
def get_sts : UInt64?
self.check_update
return SigHelper::Client.get_sts
rescue ex
LOGGER.debug(ex.message || "Signature: Unknown error")
LOGGER.trace(ex.inspect_with_backtrace)
return nil
end
end