Invidious is an alternative front-end to YouTube
Skip OTF streams in DASH audio
138138138cbcf31a4f987
diff --git a/src/invidious/routes/api/manifest.cr b/src/invidious/routes/api/manifest.crindex ca72be26..52b94175 100644--- a/src/invidious/routes/api/manifest.cr+++ b/src/invidious/routes/api/manifest.cr@@ -61,10 +61,10 @@ module Invidious::Routes::API::Manifestnext if mime_streams.empty?mime_streams.each do |fmt|- xml.element("AdaptationSet", id: i, mimeType: mime_type, startWithSAP: 1, subsegmentAlignment: true, label: fmt["bitrate"].to_s + "k") do- # OTF streams aren't supported yet (See https://github.com/TeamNewPipe/NewPipe/issues/2415)- next if !(fmt.has_key?("indexRange") && fmt.has_key?("initRange"))+ # OTF streams aren't supported yet (See https://github.com/TeamNewPipe/NewPipe/issues/2415)+ next if !(fmt.has_key?("indexRange") && fmt.has_key?("initRange"))+ xml.element("AdaptationSet", id: i, mimeType: mime_type, startWithSAP: 1, subsegmentAlignment: true, label: fmt["bitrate"].to_s + "k") docodecs = fmt["mimeType"].as_s.split("codecs=")[1].strip('"')bandwidth = fmt["bitrate"].as_iitag = fmt["itag"].as_i