diff --git a/src/invidious.cr b/src/invidious.cr index d64790028..c2de0dcfe 100644 --- a/src/invidious.cr +++ b/src/invidious.cr @@ -4493,7 +4493,7 @@ get "/api/manifest/dash/id/:id" do |env| end audio_streams = video.audio_streams(adaptive_fmts) - video_streams = video.video_streams(adaptive_fmts) + video_streams = video.video_streams(adaptive_fmts).sort_by { |stream| stream["fps"].to_i }.reverse XML.build(indent: " ", encoding: "UTF-8") do |xml| xml.element("MPD", "xmlns": "urn:mpeg:dash:schema:mpd:2011",