Skip to content

Commit

Permalink
Update src/invidious/videos/transcript.cr
Browse files Browse the repository at this point in the history
Co-authored-by: Samantaz Fox <[email protected]>
  • Loading branch information
syeopite and SamantazFox committed Aug 24, 2023
1 parent 1f7592e commit 7d435f0
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/invidious/videos/transcript.cr
Original file line number Diff line number Diff line change
Expand Up @@ -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" => "",
},
Expand Down

0 comments on commit 7d435f0

Please sign in to comment.