-
-
Notifications
You must be signed in to change notification settings - Fork 446
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use dynamically updated about summary
- Loading branch information
1 parent
b544e7e
commit e34295c
Showing
4 changed files
with
58 additions
and
60 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 16 additions & 0 deletions
16
...tlin/app/revanced/patches/youtube/layout/thumbnails/AlternativeThumbnailsResourcePatch.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
package app.revanced.patches.youtube.layout.thumbnails | ||
|
||
import app.revanced.patcher.data.ResourceContext | ||
import app.revanced.patcher.patch.ResourcePatch | ||
import app.revanced.patcher.patch.annotation.Patch | ||
import app.revanced.patches.youtube.misc.settings.SettingsPatch | ||
import app.revanced.util.mergeStrings | ||
|
||
@Patch( | ||
dependencies = [SettingsPatch::class] | ||
) | ||
internal object AlternativeThumbnailsResourcePatch : ResourcePatch() { | ||
override fun execute(context: ResourceContext) { | ||
context.mergeStrings("alternativethumbnails/host/values/strings.xml") | ||
} | ||
} |
9 changes: 9 additions & 0 deletions
9
src/main/resources/alternativethumbnails/host/values/strings.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<resources> | ||
<string name="revanced_alt_thumbnail_about_summary_disabled">Showing original YouTube thumbnails</string> | ||
<string name="revanced_alt_thumbnail_about_summary_stills">Showing still video captures from the beginning/middle/end of each video. These images are built into YouTube, and no external API is used</string> | ||
|
||
<string name="revanced_alt_thumbnail_about_summary_dearrow" formatted="false">Showing DeArrow provides crowd-sourced thumbnails. These thumbnails are often more relevant than the ones provided by YouTube. Thumbnail requests will be sent to the DeArrow API server, and no other data is sent.\n\nIf DeArrow has no thumbnails, %s\n\n%s</string> | ||
<string name="revanced_alt_thumbnail_about_summary_dearrow_fallback_none">then the original YouTube thumbnails will be shown</string> | ||
<string name="revanced_alt_thumbnail_about_summary_dearrow_fallback_stills">then YouTube provided still image captures will be shown.</string> | ||
<string name="revanced_alt_thumbnail_about_summary_link_text">Tap here to learn more about DeArrow</string> | ||
</resources> |