mirror of
https://github.com/iv-org/invidious.git
synced 2024-12-24 06:49:23 -05:00
Formatting
This commit is contained in:
parent
4fc1b8ae86
commit
456e91426a
@ -41,7 +41,7 @@ module Invidious::Videos
|
|||||||
if item.name == "body"
|
if item.name == "body"
|
||||||
item.children.each do |cue|
|
item.children.each do |cue|
|
||||||
if cue.name == "p" && !(cue.children.size == 1 && cue.children[0].content == "\n")
|
if cue.name == "p" && !(cue.children.size == 1 && cue.children[0].content == "\n")
|
||||||
cues << cue
|
cues << cue
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
break
|
break
|
||||||
@ -56,7 +56,7 @@ module Invidious::Videos
|
|||||||
|
|
||||||
END_VTT
|
END_VTT
|
||||||
|
|
||||||
result << "\n\n"
|
result << "\n\n"
|
||||||
|
|
||||||
cues.each_with_index do |node, i|
|
cues.each_with_index do |node, i|
|
||||||
start_time = node["t"].to_f.milliseconds
|
start_time = node["t"].to_f.milliseconds
|
||||||
|
Loading…
Reference in New Issue
Block a user