diff options
| author | DUOLabs333 <dvdugo333@gmail.com> | 2023-01-08 16:44:44 -0500 |
|---|---|---|
| committer | DUOLabs333 <dvdugo333@gmail.com> | 2023-01-08 16:44:44 -0500 |
| commit | 456e91426aeeafe889e2ea8887cfc3aa3f92fcd3 (patch) | |
| tree | e2aa3db8528e8b2f20c0400239daeaad3c56af4f /src | |
| parent | 4fc1b8ae86ab3d32955e72c957514799e5e121dc (diff) | |
| download | invidious-456e91426aeeafe889e2ea8887cfc3aa3f92fcd3.tar.gz invidious-456e91426aeeafe889e2ea8887cfc3aa3f92fcd3.tar.bz2 invidious-456e91426aeeafe889e2ea8887cfc3aa3f92fcd3.zip | |
Formatting
Diffstat (limited to 'src')
| -rw-r--r-- | src/invidious/videos/caption.cr | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/invidious/videos/caption.cr b/src/invidious/videos/caption.cr index 95b9d643..03bc3fd0 100644 --- a/src/invidious/videos/caption.cr +++ b/src/invidious/videos/caption.cr @@ -41,7 +41,7 @@ module Invidious::Videos if item.name == "body" item.children.each do |cue| if cue.name == "p" && !(cue.children.size == 1 && cue.children[0].content == "\n") - cues << cue + cues << cue end end break @@ -56,8 +56,8 @@ module Invidious::Videos END_VTT - result << "\n\n" - + result << "\n\n" + cues.each_with_index do |node, i| start_time = node["t"].to_f.milliseconds |
