mirror of
https://github.com/iv-org/invidious.git
synced 2025-11-04 22:51:58 +00:00
Add label to fmt_stream
This commit is contained in:
@@ -271,7 +271,8 @@ get "/watch" do |env|
|
||||
end
|
||||
end
|
||||
|
||||
fmt_stream = fmt_stream.uniq { |s| s["quality"] }
|
||||
fmt_stream.each { |s| s.add("label", "#{s["quality"]} - #{s["type"].split(";")[0].split("/")[1]}") }
|
||||
fmt_stream = fmt_stream.uniq { |s| s["label"] }
|
||||
|
||||
video_streams = adaptive_fmts.compact_map { |s| s["type"].starts_with?("video") ? s : nil }
|
||||
video_streams = video_streams.uniq { |s| s["size"] }
|
||||
|
||||
Reference in New Issue
Block a user