From 8b62c05fe2df979bd1d1b53cde4b86ad318cb760 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89milien=20Devos?= Date: Fri, 3 Sep 2021 09:39:11 +0200 Subject: [PATCH] remove 3gp only from the player (#2376) + video quality precedence on default player when js is not enabled --- src/invidious/views/components/player.ecr | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/invidious/views/components/player.ecr b/src/invidious/views/components/player.ecr index 03252418..c520fb5a 100644 --- a/src/invidious/views/components/player.ecr +++ b/src/invidious/views/components/player.ecr @@ -16,6 +16,8 @@ <% end %> <% + fmt_stream.reject! { |f| f["itag"] == 17 } + fmt_stream.sort_by! {|f| params.quality == f["quality"] ? 0 : 1 } fmt_stream.each_with_index do |fmt, i| src_url = "/latest_version?id=#{video.id}&itag=#{fmt["itag"]}" src_url += "&local=true" if params.local