From 65e9eacfb1106277f3698bbcfb3883753e8efaf1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89milien=20Devos?= Date: Wed, 27 Oct 2021 06:59:48 +0000 Subject: [PATCH] update PRs --- patches/3-2444.patch | 61 ++------- patches/4-2538.patch | 318 ++++++++++++++++++++++++++++++++++++++++++- 2 files changed, 328 insertions(+), 51 deletions(-) diff --git a/patches/3-2444.patch b/patches/3-2444.patch index ce2503c..a6fbe6a 100644 --- a/patches/3-2444.patch +++ b/patches/3-2444.patch @@ -1,7 +1,7 @@ -From 97dc90ae792c3ad876dd5d60c79fb33c23706096 Mon Sep 17 00:00:00 2001 +From 66e7285108363c3c3dcb814bdffb716c14e1724d Mon Sep 17 00:00:00 2001 From: syeopite Date: Sat, 2 Oct 2021 11:51:15 -0700 -Subject: [PATCH 1/5] Only use /redirect when automatically redirecting +Subject: [PATCH 1/4] Only use /redirect when automatically redirecting --- src/invidious/routes/misc.cr | 2 +- @@ -11,9 +11,8 @@ Subject: [PATCH 1/5] Only use /redirect when automatically redirecting .../components/video-context-buttons.ecr | 21 +++++++++++++ src/invidious/views/playlist.ecr | 13 ++++++-- src/invidious/views/playlists.ecr | 6 +++- - src/invidious/views/preferences.ecr | 2 +- src/invidious/views/watch.ecr | 4 +++ - 9 files changed, 57 insertions(+), 34 deletions(-) + 8 files changed, 56 insertions(+), 33 deletions(-) create mode 100644 src/invidious/views/components/video-context-buttons.ecr diff --git a/src/invidious/routes/misc.cr b/src/invidious/routes/misc.cr @@ -64,7 +63,7 @@ index 15d8ed1e0..17bc4f89b 100644 <% if !channel.auto_generated %>
diff --git a/src/invidious/views/components/item.ecr b/src/invidious/views/components/item.ecr -index d084bfd4d..1852d3659 100644 +index 5788bf513..a58571aa1 100644 --- a/src/invidious/views/components/item.ecr +++ b/src/invidious/views/components/item.ecr @@ -79,19 +79,8 @@ @@ -181,21 +180,8 @@ index 1245256fe..74890f5a1 100644
-diff --git a/src/invidious/views/preferences.ecr b/src/invidious/views/preferences.ecr -index 401c15ea6..5999169ad 100644 ---- a/src/invidious/views/preferences.ecr -+++ b/src/invidious/views/preferences.ecr -@@ -186,7 +186,7 @@ - -
- -- checked<% end %>> -+ checked<% end %>> -
- - <% if env.get? "user" %> diff --git a/src/invidious/views/watch.ecr b/src/invidious/views/watch.ecr -index 68e7eb801..845b01177 100644 +index cad36e732..928e56453 100644 --- a/src/invidious/views/watch.ecr +++ b/src/invidious/views/watch.ecr @@ -116,7 +116,11 @@ we're going to need to do it here in order to allow for translations. @@ -211,10 +197,10 @@ index 68e7eb801..845b01177 100644
diff --git a/src/invidious/views/watch.ecr b/src/invidious/views/watch.ecr -index 845b01177..6018e5c2d 100644 +index 928e56453..2f3709dd3 100644 --- a/src/invidious/views/watch.ecr +++ b/src/invidious/views/watch.ecr @@ -119,7 +119,7 @@ we're going to need to do it here in order to allow for translations. @@ -338,26 +324,3 @@ index 845b01177..6018e5c2d 100644 <% end %>

+- +- checked<% end %>> ++ ++ checked<% end %>> +
+ + <%= translate(locale, "Visual preferences") %> + +From 928636ec9f93a0023206f8de2cb5ab7199100267 Mon Sep 17 00:00:00 2001 +From: bbielsa +Date: Tue, 26 Oct 2021 19:31:50 -0400 +Subject: [PATCH 6/7] Use localization for save player position label in the + preferences page + +--- + locales/en-US.json | 3 ++- + src/invidious/views/preferences.ecr | 2 +- + 2 files changed, 3 insertions(+), 2 deletions(-) + +diff --git a/locales/en-US.json b/locales/en-US.json +index 230d96ad2..730cd0933 100644 +--- a/locales/en-US.json ++++ b/locales/en-US.json +@@ -431,5 +431,6 @@ + "footer_source_code": "Source code", + "footer_original_source_code": "Original source code", + "footer_modfied_source_code": "Modified Source code", +- "adminprefs_modified_source_code_url_label": "URL to modified source code repository" ++ "adminprefs_modified_source_code_url_label": "URL to modified source code repository", ++ "preferences_save_player_pos_label": "Save the current video time: " + } +diff --git a/src/invidious/views/preferences.ecr b/src/invidious/views/preferences.ecr +index 590f104c6..c1b293f0f 100644 +--- a/src/invidious/views/preferences.ecr ++++ b/src/invidious/views/preferences.ecr +@@ -117,7 +117,7 @@ + + +
+- ++ + checked<% end %>> +
+ + +From bac8f3aa92a4c3576a8ea674d8e8ee9d9a4e18e5 Mon Sep 17 00:00:00 2001 +From: bbielsa +Date: Tue, 26 Oct 2021 19:50:48 -0400 +Subject: [PATCH 7/7] Fix indentation of save_player_pos property value in + videos.cr + +--- + src/invidious/videos.cr | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/src/invidious/videos.cr b/src/invidious/videos.cr +index 4d1f1fd95..bcde7d2d9 100644 +--- a/src/invidious/videos.cr ++++ b/src/invidious/videos.cr +@@ -1144,7 +1144,7 @@ def process_video_params(query, preferences) + video_start: video_start, + volume: volume, + vr_mode: vr_mode, +- save_player_pos: save_player_pos, ++ save_player_pos: save_player_pos, + }) + + return params