From 83747b7aea33d8fe4b4b9514fdf7c9081c357410 Mon Sep 17 00:00:00 2001 From: LisoUseInAIKyrios <118716522+LisoUseInAIKyrios@users.noreply.github.com> Date: Sun, 16 Apr 2023 22:18:16 +0400 Subject: [PATCH] feat(youtube/sponsorblock): skip to video highlight (#1874) --- .../sponsorblock/host/values/strings.xml | 8 ++++- .../layout/inline_sponsor_overlay.xml | 32 +++++++++++++------ .../layout/skip_sponsor_button.xml | 1 - 3 files changed, 29 insertions(+), 12 deletions(-) diff --git a/src/main/resources/sponsorblock/host/values/strings.xml b/src/main/resources/sponsorblock/host/values/strings.xml index 3d6ef38c7..6ea734421 100644 --- a/src/main/resources/sponsorblock/host/values/strings.xml +++ b/src/main/resources/sponsorblock/host/values/strings.xml @@ -44,6 +44,8 @@ Similar to \'Sponsor\' except for unpaid or self promotion. Includes sections about merchandise, donations, or information about who they collaborated with Interaction Reminder (Subscribe) A short reminder to like, subscribe or follow them in the middle of content. If it is long or about something specific, it should instead be under self promotion + Highlight + The part of the video that most people are looking for Intermission/Intro Animation An interval without actual content. Could be a pause, static frame, or repeating animation. Does not include transitions containing information Endcards/Credits @@ -56,9 +58,11 @@ Only for use in music videos. Sections of music videos without music, that aren\'t already covered by another category Skip + Highlight Skip sponsor Skip promo Skip interact + Skip to highlight Skip intro Skip intermission Skip intermission @@ -73,6 +77,7 @@ Skipped sponsor Skipped self promotion Skipped annoying reminder + Skipped to highlight Skipped intro Skipped intermission Skipped intermission @@ -119,7 +124,7 @@ Choose the segment category Category is disabled in settings. Enable category to submit. New SponsorBlock segment - Set %02d:%02d:%04d as the start or end of a new segment? + Set %02d:%02d:%03d as the start or end of a new segment? start end now @@ -127,6 +132,7 @@ Time the segment ends at Are the times correct? The segment lasts from %02d:%02d to %02d:%02d (%d minutes %02d seconds)\nIs it ready to submit? + Start must be before the end Mark two locations on the time bar first Preview the segment, and ensure it skips smoothly Edit timing of segment manually diff --git a/src/main/resources/sponsorblock/layout/inline_sponsor_overlay.xml b/src/main/resources/sponsorblock/layout/inline_sponsor_overlay.xml index 9f4221735..2c0385549 100644 --- a/src/main/resources/sponsorblock/layout/inline_sponsor_overlay.xml +++ b/src/main/resources/sponsorblock/layout/inline_sponsor_overlay.xml @@ -1,6 +1,28 @@ + + + + - - \ No newline at end of file diff --git a/src/main/resources/sponsorblock/layout/skip_sponsor_button.xml b/src/main/resources/sponsorblock/layout/skip_sponsor_button.xml index 3a3167bb8..185960ec9 100644 --- a/src/main/resources/sponsorblock/layout/skip_sponsor_button.xml +++ b/src/main/resources/sponsorblock/layout/skip_sponsor_button.xml @@ -7,7 +7,6 @@ android:layout_width="wrap_content" android:layout_height="32dp" android:layout_gravity="center_vertical" - android:contentDescription="@string/sb_skip_button_compact" android:orientation="horizontal" android:padding="8dp">