Update src/invidious/videos/transcript.cr
Co-authored-by: Samantaz Fox <coding@samantaz.fr>
This commit is contained in:
parent
1f7592e599
commit
7d435f082b
1 changed files with 2 additions and 5 deletions
|
@ -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" => "",
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue