mirror of
https://github.com/iv-org/invidious.git
synced 2024-10-01 01:25:56 -04:00
It's OTF, not OFT
This commit is contained in:
parent
8144308aee
commit
b7f0b054b8
@ -62,7 +62,7 @@ module Invidious::Routes::API::Manifest
|
|||||||
|
|
||||||
xml.element("AdaptationSet", id: i, mimeType: mime_type, startWithSAP: 1, subsegmentAlignment: true) do
|
xml.element("AdaptationSet", id: i, mimeType: mime_type, startWithSAP: 1, subsegmentAlignment: true) do
|
||||||
mime_streams.each do |fmt|
|
mime_streams.each do |fmt|
|
||||||
# OFT streams aren't supported yet (See https://github.com/TeamNewPipe/NewPipe/issues/2415)
|
# OTF streams aren't supported yet (See https://github.com/TeamNewPipe/NewPipe/issues/2415)
|
||||||
next if !(fmt.has_key?("indexRange") && fmt.has_key?("initRange"))
|
next if !(fmt.has_key?("indexRange") && fmt.has_key?("initRange"))
|
||||||
|
|
||||||
codecs = fmt["mimeType"].as_s.split("codecs=")[1].strip('"')
|
codecs = fmt["mimeType"].as_s.split("codecs=")[1].strip('"')
|
||||||
@ -93,7 +93,7 @@ module Invidious::Routes::API::Manifest
|
|||||||
heights = [] of Int32
|
heights = [] of Int32
|
||||||
xml.element("AdaptationSet", id: i, mimeType: mime_type, startWithSAP: 1, subsegmentAlignment: true, scanType: "progressive") do
|
xml.element("AdaptationSet", id: i, mimeType: mime_type, startWithSAP: 1, subsegmentAlignment: true, scanType: "progressive") do
|
||||||
mime_streams.each do |fmt|
|
mime_streams.each do |fmt|
|
||||||
# OFT streams aren't supported yet (See https://github.com/TeamNewPipe/NewPipe/issues/2415)
|
# OTF streams aren't supported yet (See https://github.com/TeamNewPipe/NewPipe/issues/2415)
|
||||||
next if !(fmt.has_key?("indexRange") && fmt.has_key?("initRange"))
|
next if !(fmt.has_key?("indexRange") && fmt.has_key?("initRange"))
|
||||||
|
|
||||||
codecs = fmt["mimeType"].as_s.split("codecs=")[1].strip('"')
|
codecs = fmt["mimeType"].as_s.split("codecs=")[1].strip('"')
|
||||||
|
@ -374,7 +374,7 @@ struct Video
|
|||||||
json.array do
|
json.array do
|
||||||
self.adaptive_fmts.each do |fmt|
|
self.adaptive_fmts.each do |fmt|
|
||||||
json.object do
|
json.object do
|
||||||
# Only available on regular videos, not livestreams/OFT streams
|
# Only available on regular videos, not livestreams/OTF streams
|
||||||
if init_range = fmt["initRange"]?
|
if init_range = fmt["initRange"]?
|
||||||
json.field "init", "#{init_range["start"]}-#{init_range["end"]}"
|
json.field "init", "#{init_range["start"]}-#{init_range["end"]}"
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user