Update src/invidious/videos/transcript.cr

Co-authored-by: Samantaz Fox <coding@samantaz.fr>
This commit is contained in:
syeopite 2023-08-24 23:20:20 +00:00 committed by GitHub
parent 1f7592e599
commit 7d435f082b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -4,16 +4,13 @@ module Invidious::Videos
record TranscriptLine, start_ms : Time::Span, end_ms : Time::Span, line : String
def self.generate_param(video_id : String, language_code : String, auto_generated : Bool) : String
if !auto_generated
is_auto_generated = ""
elsif is_auto_generated = "asr"
end
kind = auto_generated ? "asr" : ""
object = {
"1:0:string" => video_id,
"2:base64" => {
"1:string" => is_auto_generated,
"1:string" => kind,
"2:string" => language_code,
"3:string" => "",
},