|
|
|
@ -92,7 +92,7 @@ module Invidious::Routes::API::V1::Videos
|
|
|
|
|
caption_xml = YT_POOL.client &.get(url).body
|
|
|
|
|
|
|
|
|
|
if caption_xml.starts_with?("<?xml")
|
|
|
|
|
webvtt =caption.timedtext_to_vtt(caption_xml,tlang)
|
|
|
|
|
webvtt = caption.timedtext_to_vtt(caption_xml, tlang)
|
|
|
|
|
else
|
|
|
|
|
caption_xml = XML.parse(caption_xml)
|
|
|
|
|
|
|
|
|
|