mirror of
https://gitea.invidious.io/iv-org/invidious-copy-2023-06-08.git
synced 2024-08-15 00:53:38 +00:00
More linting
This commit is contained in:
parent
b49ed65a07
commit
45b8f6d0cd
1 changed files with 37 additions and 37 deletions
|
@ -92,7 +92,7 @@ module Invidious::Routes::API::V1::Videos
|
||||||
caption_xml = YT_POOL.client &.get(url).body
|
caption_xml = YT_POOL.client &.get(url).body
|
||||||
|
|
||||||
if caption_xml.starts_with?("<?xml")
|
if caption_xml.starts_with?("<?xml")
|
||||||
webvtt =caption.timedtext_to_vtt(caption_xml,tlang)
|
webvtt = caption.timedtext_to_vtt(caption_xml, tlang)
|
||||||
else
|
else
|
||||||
caption_xml = XML.parse(caption_xml)
|
caption_xml = XML.parse(caption_xml)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue