Skip to content

Commit

Permalink
It's OTF, not OFT
Browse files Browse the repository at this point in the history
  • Loading branch information
SamantazFox committed Apr 27, 2022
1 parent 8144308 commit b7f0b05
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/invidious/routes/api/manifest.cr
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ module Invidious::Routes::API::Manifest

xml.element("AdaptationSet", id: i, mimeType: mime_type, startWithSAP: 1, subsegmentAlignment: true) do
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"))

codecs = fmt["mimeType"].as_s.split("codecs=")[1].strip('"')
Expand Down Expand Up @@ -93,7 +93,7 @@ module Invidious::Routes::API::Manifest
heights = [] of Int32
xml.element("AdaptationSet", id: i, mimeType: mime_type, startWithSAP: 1, subsegmentAlignment: true, scanType: "progressive") do
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"))

codecs = fmt["mimeType"].as_s.split("codecs=")[1].strip('"')
Expand Down
2 changes: 1 addition & 1 deletion src/invidious/videos.cr
Original file line number Diff line number Diff line change
Expand Up @@ -374,7 +374,7 @@ struct Video
json.array do
self.adaptive_fmts.each do |fmt|
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"]?
json.field "init", "#{init_range["start"]}-#{init_range["end"]}"
end
Expand Down

0 comments on commit b7f0b05

Please sign in to comment.