Skip to content

Commit 6aff8e8

Browse files
author
LisoUseInAIKyrios
committed
fix(YouTube - Video quality): Remove non-functional Shorts 144p default quality
1 parent 11aa463 commit 6aff8e8

File tree

2 files changed

+26
-4
lines changed

2 files changed

+26
-4
lines changed

patches/src/main/kotlin/app/revanced/patches/youtube/video/quality/RememberVideoQualityPatch.kt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,14 +52,14 @@ val rememberVideoQualityPatch = bytecodePatch {
5252
ListPreference(
5353
key = "revanced_shorts_quality_default_mobile",
5454
summaryKey = null,
55-
entriesKey = "revanced_video_quality_default_entries",
56-
entryValuesKey = "revanced_video_quality_default_entry_values",
55+
entriesKey = "revanced_shorts_quality_default_entries",
56+
entryValuesKey = "revanced_shorts_quality_default_entry_values",
5757
),
5858
ListPreference(
5959
key = "revanced_shorts_quality_default_wifi",
6060
summaryKey = null,
61-
entriesKey = "revanced_video_quality_default_entries",
62-
entryValuesKey = "revanced_video_quality_default_entry_values",
61+
entriesKey = "revanced_shorts_quality_default_entries",
62+
entryValuesKey = "revanced_shorts_quality_default_entry_values",
6363
),
6464
SwitchPreference("revanced_remember_shorts_quality_last_selected")
6565
))

patches/src/main/resources/addresources/values/arrays.xml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -400,6 +400,28 @@
400400
<item>240</item>
401401
<item>144</item>
402402
</string-array>
403+
<!-- Forcing video qualities lower than what's available doesn't work with Shorts, such as 144p.
404+
If 144p is forced, after a few seconds the quality resets back to 720p/1080p. -->
405+
<string-array name="revanced_shorts_quality_default_entries">
406+
<item>@string/revanced_video_quality_default_entry_1</item>
407+
<item>2160p</item>
408+
<item>1440p</item>
409+
<item>1080p</item>
410+
<item>720p</item>
411+
<item>480p</item>
412+
<item>360p</item>
413+
<item>240p</item>
414+
</string-array>
415+
<string-array name="revanced_shorts_quality_default_entry_values">
416+
<item>-2</item>
417+
<item>2160</item>
418+
<item>1440</item>
419+
<item>1080</item>
420+
<item>720</item>
421+
<item>480</item>
422+
<item>360</item>
423+
<item>240</item>
424+
</string-array>
403425
</patch>
404426
</app>
405427
<app id="twitch">

0 commit comments

Comments
 (0)