diff options
| author | Omar Roth <omarroth@protonmail.com> | 2019-08-02 15:24:38 -0500 |
|---|---|---|
| committer | Omar Roth <omarroth@protonmail.com> | 2019-08-02 15:24:38 -0500 |
| commit | 5680d5a7bebbb8e3c715e7f546bce49116b4a599 (patch) | |
| tree | 68704091730f56f1ef5078ebe922799ac6cb0fa5 /src/invidious.cr | |
| parent | 004246124b8d9e8be6111f9e483f3b14bd2f1154 (diff) | |
| download | invidious-5680d5a7bebbb8e3c715e7f546bce49116b4a599.tar.gz invidious-5680d5a7bebbb8e3c715e7f546bce49116b4a599.tar.bz2 invidious-5680d5a7bebbb8e3c715e7f546bce49116b4a599.zip | |
Sort dash representations by framerate
Diffstat (limited to 'src/invidious.cr')
| -rw-r--r-- | src/invidious.cr | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/invidious.cr b/src/invidious.cr index d6479002..c2de0dcf 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", |
