summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSamantaz Fox <coding@samantaz.fr>2022-04-27 21:44:31 +0200
committerSamantaz Fox <coding@samantaz.fr>2022-04-27 21:46:45 +0200
commitb7f0b054b85e60ae7c91144cb44d8139e468b23a (patch)
tree2a5ead7ee640b0087af40c29780ad225f6c9e4f4
parent8144308aee078d2322491e9848247df7257d756b (diff)
downloadinvidious-b7f0b054b85e60ae7c91144cb44d8139e468b23a.tar.gz
invidious-b7f0b054b85e60ae7c91144cb44d8139e468b23a.tar.bz2
invidious-b7f0b054b85e60ae7c91144cb44d8139e468b23a.zip
It's OTF, not OFT
-rw-r--r--src/invidious/routes/api/manifest.cr4
-rw-r--r--src/invidious/videos.cr2
2 files changed, 3 insertions, 3 deletions
diff --git a/src/invidious/routes/api/manifest.cr b/src/invidious/routes/api/manifest.cr
index d77389a8..8bc36946 100644
--- a/src/invidious/routes/api/manifest.cr
+++ b/src/invidious/routes/api/manifest.cr
@@ -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('"')
@@ -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('"')
diff --git a/src/invidious/videos.cr b/src/invidious/videos.cr
index cb860032..27c2b6d1 100644
--- a/src/invidious/videos.cr
+++ b/src/invidious/videos.cr
@@ -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