diff options
| author | Émilien Devos <contact@emiliendevos.be> | 2021-09-03 09:39:11 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-09-03 09:39:11 +0200 |
| commit | 8b62c05fe2df979bd1d1b53cde4b86ad318cb760 (patch) | |
| tree | 57ad979f756f28cf645d33f883116ad9eb95677a /src | |
| parent | 0e92a63d141bb9ebd2be14f0748792ad0273ba73 (diff) | |
| download | invidious-8b62c05fe2df979bd1d1b53cde4b86ad318cb760.tar.gz invidious-8b62c05fe2df979bd1d1b53cde4b86ad318cb760.tar.bz2 invidious-8b62c05fe2df979bd1d1b53cde4b86ad318cb760.zip | |
remove 3gp only from the player (#2376)
+ video quality precedence on default player when js is not enabled
Diffstat (limited to 'src')
| -rw-r--r-- | src/invidious/views/components/player.ecr | 2 |
1 files changed, 2 insertions, 0 deletions
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 |
