mirror of
https://github.com/iv-org/invidious.git
synced 2024-12-22 16:19:53 +05:30
Update src/invidious/videos/transcript.cr
Co-authored-by: Samantaz Fox <coding@samantaz.fr>
This commit is contained in:
parent
1f7592e599
commit
7d435f082b
@ -4,16 +4,13 @@ module Invidious::Videos
|
|||||||
record TranscriptLine, start_ms : Time::Span, end_ms : Time::Span, line : String
|
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
|
def self.generate_param(video_id : String, language_code : String, auto_generated : Bool) : String
|
||||||
if !auto_generated
|
kind = auto_generated ? "asr" : ""
|
||||||
is_auto_generated = ""
|
|
||||||
elsif is_auto_generated = "asr"
|
|
||||||
end
|
|
||||||
|
|
||||||
object = {
|
object = {
|
||||||
"1:0:string" => video_id,
|
"1:0:string" => video_id,
|
||||||
|
|
||||||
"2:base64" => {
|
"2:base64" => {
|
||||||
"1:string" => is_auto_generated,
|
"1:string" => kind,
|
||||||
"2:string" => language_code,
|
"2:string" => language_code,
|
||||||
"3:string" => "",
|
"3:string" => "",
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user