renge/invidious: Update patch
This commit is contained in:
parent
cca81bc96c
commit
157e8c6bf0
|
@ -1,4 +1,4 @@
|
||||||
From 3c692fc4fd5ea7faefc6b6ef63c9b6b20205a1cb Mon Sep 17 00:00:00 2001
|
From c8fa5a9b2fd5f4a9a5fe3b1e0876702a1d6dd5e2 Mon Sep 17 00:00:00 2001
|
||||||
From: Simon Bruder <simon@sbruder.de>
|
From: Simon Bruder <simon@sbruder.de>
|
||||||
Date: Thu, 9 Sep 2021 16:56:57 +0200
|
Date: Thu, 9 Sep 2021 16:56:57 +0200
|
||||||
Subject: [PATCH] Prefer opus audio streams in listen mode
|
Subject: [PATCH] Prefer opus audio streams in listen mode
|
||||||
|
@ -8,7 +8,7 @@ Subject: [PATCH] Prefer opus audio streams in listen mode
|
||||||
1 file changed, 10 insertions(+)
|
1 file changed, 10 insertions(+)
|
||||||
|
|
||||||
diff --git a/src/invidious/views/components/player.ecr b/src/invidious/views/components/player.ecr
|
diff --git a/src/invidious/views/components/player.ecr b/src/invidious/views/components/player.ecr
|
||||||
index 6418f66b..73524cfd 100644
|
index fffefc9a..9c9ce553 100644
|
||||||
--- a/src/invidious/views/components/player.ecr
|
--- a/src/invidious/views/components/player.ecr
|
||||||
+++ b/src/invidious/views/components/player.ecr
|
+++ b/src/invidious/views/components/player.ecr
|
||||||
@@ -7,6 +7,16 @@
|
@@ -7,6 +7,16 @@
|
||||||
|
@ -25,9 +25,9 @@ index 6418f66b..73524cfd 100644
|
||||||
+ end
|
+ end
|
||||||
+ audio_streams.sort_by! { |fmt| fmt["bitrate"].as_i }.reverse!
|
+ audio_streams.sort_by! { |fmt| fmt["bitrate"].as_i }.reverse!
|
||||||
+ %>
|
+ %>
|
||||||
<% audio_streams.each_with_index do |fmt, i| %>
|
<% audio_streams.each_with_index do |fmt, i|
|
||||||
<source src="/latest_version?id=<%= video.id %>&itag=<%= fmt["itag"] %><% if params.local %>&local=true<% end %>" type='<%= fmt["mimeType"] %>' label="<%= fmt["bitrate"] %>k" selected="<%= i == 0 ? true : false %>">
|
src_url = "/latest_version?id=#{video.id}&itag=#{fmt["itag"]}"
|
||||||
<% end %>
|
src_url += "&local=true" if params.local
|
||||||
--
|
--
|
||||||
2.31.1
|
2.33.3
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue