feat(YouTube - Overlay buttons): Add missing ALL_CONTENTS_WITH_TIME_ASCENDING type (#105)

* Add `ALL_CONTENTS_WITH_TIME_ASCENDING` type

* Rewrite function

* Update arrays.xml

* Update strings.xml

* Update strings.xml

* chore: Simplify

* fix: Apply code review suggestions

---------

Co-authored-by: inotia00 <108592928+inotia00@users.noreply.github.com>
This commit is contained in:
Hoàng Gia Bảo
2024-12-15 13:33:50 +07:00
committed by GitHub
parent dad6b3d5e4
commit 7023e5b323
4 changed files with 45 additions and 33 deletions

View File

@ -136,6 +136,7 @@
<item>https://github.com/deniscerri/ytdlnis/releases/latest</item>
</string-array>
<string-array name="revanced_overlay_button_play_all_type_entries">
<item>@string/revanced_overlay_button_play_all_type_entry_0</item>
<item>@string/revanced_overlay_button_play_all_type_entry_1</item>
<item>@string/revanced_overlay_button_play_all_type_entry_2</item>
<item>@string/revanced_overlay_button_play_all_type_entry_3</item>
@ -150,6 +151,7 @@
<item>@string/revanced_overlay_button_play_all_type_entry_12</item>
</string-array>
<string-array name="revanced_overlay_button_play_all_type_entry_values">
<item>ALL_CONTENTS_WITH_TIME_ASCENDING</item>
<item>ALL_CONTENTS_WITH_TIME_DESCENDING</item>
<item>ALL_CONTENTS_WITH_POPULAR_DESCENDING</item>
<item>VIDEOS_ONLY_WITH_TIME_DESCENDING</item>

View File

@ -1057,6 +1057,7 @@ Tap and hold to undo.
Info:
• May not work on livestreams."</string>
<string name="revanced_overlay_button_play_all_type_title">Generate playlist mode</string>
<string name="revanced_overlay_button_play_all_type_entry_0">All contents (Sort by time, Ascending)</string>
<string name="revanced_overlay_button_play_all_type_entry_1">All contents (Sort by time)</string>
<string name="revanced_overlay_button_play_all_type_entry_2">All contents (Sort by popular)</string>
<string name="revanced_overlay_button_play_all_type_entry_3">Videos only (Sort by time)</string>
@ -1948,4 +1949,4 @@ AVC (H.264) has a maximum resolution of 1080p, and video playback will use more
<string name="revanced_patches_excluded">Excluded</string>
<string name="revanced_patches_included">Included</string>
<string name="revanced_theme_default">Stock</string>
</resources>
</resources>