Skip to content

Commit a0a62dd

Browse files
author
LisoUseInAIKyrios
committed
fix(YouTube - Spoof video streams): Update client side effects summary text
1 parent 512e50e commit a0a62dd

File tree

45 files changed

+70
-191
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

45 files changed

+70
-191
lines changed

extensions/youtube/src/main/java/app/revanced/extension/youtube/settings/preference/SpoofStreamingDataSideEffectsPreference.java

Lines changed: 23 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -80,24 +80,29 @@ private void updateUI() {
8080
Logger.printDebug(() -> "Updating spoof stream side effects preference");
8181
setEnabled(BaseSettings.SPOOF_VIDEO_STREAMS.get());
8282

83-
setTitle(str("revanced_spoof_video_streams_about_title"));
84-
85-
String summary = str(clientType == ClientType.IPADOS
86-
? "revanced_spoof_video_streams_about_ipados_summary"
87-
// Same base side effects for Android VR, Android Studio, and visionOS.
88-
: "revanced_spoof_video_streams_about_android_summary");
89-
90-
if (clientType == ClientType.IPADOS) {
91-
summary += '\n' + str("revanced_spoof_video_streams_about_no_av1");
92-
} else if (clientType == ClientType.VISIONOS) {
93-
summary = str("revanced_spoof_video_streams_about_experimental")
94-
+ '\n' + summary
95-
+ '\n' + str("revanced_spoof_video_streams_about_no_av1")
96-
+ '\n' + str("revanced_spoof_video_streams_about_kids_videos");
97-
} else if (clientType == ClientType.ANDROID_CREATOR) {
98-
summary += '\n' + str("revanced_spoof_video_streams_about_no_av1")
99-
+ '\n' + str("revanced_spoof_video_streams_about_no_force_original_audio")
100-
+ '\n' + str("revanced_spoof_video_streams_about_kids_videos");
83+
String summary = str("revanced_spoof_video_streams_about_no_audio_tracks");
84+
85+
switch (clientType) {
86+
case ANDROID_VR_1_61_48 ->
87+
summary += '\n' + str("revanced_spoof_video_streams_about_no_stable_volume");
88+
case ANDROID_CREATOR ->
89+
summary += '\n' + str("revanced_spoof_video_streams_about_no_av1")
90+
+ '\n' + str("revanced_spoof_video_streams_about_no_stable_volume")
91+
+ '\n' + str("revanced_spoof_video_streams_about_no_force_original_audio");
92+
case IPADOS ->
93+
summary = str("revanced_spoof_video_streams_about_playback_failure")
94+
+ '\n' + str("revanced_spoof_video_streams_about_no_av1");
95+
case VISIONOS ->
96+
summary = str("revanced_spoof_video_streams_about_experimental")
97+
+ '\n' + summary
98+
+ '\n' + str("revanced_spoof_video_streams_about_no_av1");
99+
}
100+
101+
// Only iPadOS can play children videos in incognito, but it commonly fails at 1 minute
102+
// or doesn't even start playback at all. List the side effect for other clients
103+
// since they will fall over to iPadOS.
104+
if (clientType != ClientType.IPADOS) {
105+
summary += '\n' + str("revanced_spoof_video_streams_about_kids_videos");
101106
}
102107

103108
// Use better formatting for bullet points.

patches/src/main/kotlin/app/revanced/patches/youtube/misc/spoof/SpoofVideoStreamsPatch.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,8 @@ val spoofVideoStreamsPatch = spoofVideoStreamsPatch(
5858
ListPreference("revanced_spoof_video_streams_client_type"),
5959
NonInteractivePreference(
6060
// Requires a key and title but the actual text is chosen at runtime.
61-
key = "revanced_spoof_video_streams_about_android",
61+
key = "revanced_spoof_video_streams_about",
62+
summaryKey = null,
6263
tag = "app.revanced.extension.youtube.settings.preference.SpoofStreamingDataSideEffectsPreference"
6364
),
6465
ListPreference(

patches/src/main/resources/addresources/values-ar-rSA/strings.xml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1571,10 +1571,7 @@ Second \"item\" text"</string>
15711571
</patch>
15721572
<patch id="misc.fix.playback.spoofVideoStreamsPatch">
15731573
<string name="revanced_spoof_video_streams_about_title">الآثار الجانبية للتزوير</string>
1574-
<string name="revanced_spoof_video_streams_about_android_title">الآثار الجانبية لمحاكاة هوية Android</string>
1575-
<string name="revanced_spoof_video_streams_about_android_summary">"• قائمة المسارات الصوتية مفقودة
1576-
• مستوى الصوت المستقر غير متاح"</string>
1577-
<string name="revanced_spoof_video_streams_about_ipados_summary">• قد يتوقف الفيديو عند 1:00، أو قد لا يكون متاحًا في بعض المناطق</string>
1574+
<string name="revanced_spoof_video_streams_about_playback_failure">• قد يتوقف الفيديو عند 1:00، أو قد لا يكون متاحًا في بعض المناطق</string>
15781575
<string name="revanced_spoof_video_streams_about_experimental">• عميل تجريبي وقد يتوقف عن العمل في أي وقت</string>
15791576
<string name="revanced_spoof_video_streams_about_no_av1">• لا يوجد ترميز الفيديو AV1</string>
15801577
<string name="revanced_spoof_video_streams_about_kids_videos">• قد لا يتم تشغيل الفيديوهات المخصصة للأطفال عند تسجيل الخروج أو عند استخدام وضع التصفح المتخفي</string>

patches/src/main/resources/addresources/values-az-rAZ/strings.xml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1570,10 +1570,7 @@ Bunu aktivləşdirmə daha yüksək video keyfiyyətləri əngəlin silə bilər
15701570
</patch>
15711571
<patch id="misc.fix.playback.spoofVideoStreamsPatch">
15721572
<string name="revanced_spoof_video_streams_about_title">Saxtakarlıq yan təsirləri</string>
1573-
<string name="revanced_spoof_video_streams_about_android_title">Android saxtalaşdırma yan təsirləri</string>
1574-
<string name="revanced_spoof_video_streams_about_android_summary">"• Səs treki menyusu əlçatmazdır
1575-
• Sabit səs səviyyəsi yoxdur"</string>
1576-
<string name="revanced_spoof_video_streams_about_ipados_summary">• Video 01:00-da dayana bilər və ya bəzi bölgələrdə mövcud olmaya bilər</string>
1573+
<string name="revanced_spoof_video_streams_about_playback_failure">• Video 01:00-da dayana bilər və ya bəzi bölgələrdə mövcud olmaya bilər</string>
15771574
<string name="revanced_spoof_video_streams_about_experimental">• Təcrübi qəbuledici və hər vaxt işləməyi dayandıra bilər</string>
15781575
<string name="revanced_spoof_video_streams_about_no_av1">• AV1 video kodlayıcı yoxdur</string>
15791576
<string name="revanced_spoof_video_streams_about_kids_videos">• Giriş edilməyəndə və ya gizli rejimdə uşaq videoları oynadıla bilməz</string>

patches/src/main/resources/addresources/values-be-rBY/strings.xml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1570,10 +1570,7 @@ Second \"item\" text"</string>
15701570
</patch>
15711571
<patch id="misc.fix.playback.spoofVideoStreamsPatch">
15721572
<string name="revanced_spoof_video_streams_about_title">Пабочныя эфекты падробкі</string>
1573-
<string name="revanced_spoof_video_streams_about_android_title">Побічныя эфекты падробкі Android</string>
1574-
<string name="revanced_spoof_video_streams_about_android_summary">"• Меню гукавой дарожкі адсутнічае
1575-
• Стабільная гучнасць недаступна"</string>
1576-
<string name="revanced_spoof_video_streams_about_ipados_summary">• Відэа можа спыніцца на 1:00, ці можа быць недаступным у некаторых рэгіёнах</string>
1573+
<string name="revanced_spoof_video_streams_about_playback_failure">• Відэа можа спыніцца на 1:00, ці можа быць недаступным у некаторых рэгіёнах</string>
15771574
<string name="revanced_spoof_video_streams_about_experimental">• Эксперыментальны кліент і можа спыніць працу ў любы час</string>
15781575
<string name="revanced_spoof_video_streams_about_no_av1">• Няма відэакідавання AV1</string>
15791576
<string name="revanced_spoof_video_streams_about_kids_videos">• Дзіцячыя відэа могуць не прайгравацца ў стане выхаду з акаўнта або ў рэжыме інкогніта</string>

patches/src/main/resources/addresources/values-bg-rBG/strings.xml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1571,10 +1571,7 @@ Second \"item\" text"</string>
15711571
</patch>
15721572
<patch id="misc.fix.playback.spoofVideoStreamsPatch">
15731573
<string name="revanced_spoof_video_streams_about_title">Странични ефекти от подменянето</string>
1574-
<string name="revanced_spoof_video_streams_about_android_title">Strani4ni efekti na fal6ivoto predstavqne na Android</string>
1575-
<string name="revanced_spoof_video_streams_about_android_summary">"• Липсва менюто за аудиозаписи
1576-
• Стабилен звук не е наличен"</string>
1577-
<string name="revanced_spoof_video_streams_about_ipados_summary">• Видеото може да спре на 1:00 или може да не е налично в някои региони</string>
1574+
<string name="revanced_spoof_video_streams_about_playback_failure">• Видеото може да спре на 1:00 или може да не е налично в някои региони</string>
15781575
<string name="revanced_spoof_video_streams_about_experimental">• Експериментален клиент и може да спре да работи по всяко време</string>
15791576
<string name="revanced_spoof_video_streams_about_no_av1">• Без AV1 видео кодек</string>
15801577
<string name="revanced_spoof_video_streams_about_kids_videos">• Детските видеоклипове може да не се възпроизвеждат, когато сте излезли от профила си или в режим \"инкогнито\"</string>

patches/src/main/resources/addresources/values-bn-rBD/strings.xml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1567,10 +1567,7 @@ DeArrow সম্পর্কে আরও জানতে এখানে ট
15671567
</patch>
15681568
<patch id="misc.fix.playback.spoofVideoStreamsPatch">
15691569
<string name="revanced_spoof_video_streams_about_title">স্পুফিংয়ের পার্শ্বপ্রতিক্রিয়া</string>
1570-
<string name="revanced_spoof_video_streams_about_android_title">Android স্পুফিংয়ের পার্শ্বপ্রতিক্রিয়া</string>
1571-
<string name="revanced_spoof_video_streams_about_android_summary">"• অডিও ট্র্যাক মেনু অনুপস্থিত
1572-
• স্থিতিশীল ভলিউম উপলব্ধ নেই"</string>
1573-
<string name="revanced_spoof_video_streams_about_ipados_summary">• ভিডিও ১:০০ মিনিটে বন্ধ হতে পারে, অথবা কিছু অঞ্চলে উপলব্ধ নাও হতে পারে</string>
1570+
<string name="revanced_spoof_video_streams_about_playback_failure">• ভিডিও ১:০০ মিনিটে বন্ধ হতে পারে, অথবা কিছু অঞ্চলে উপলব্ধ নাও হতে পারে</string>
15741571
<string name="revanced_spoof_video_streams_about_experimental">• পরীক্ষামূলক ক্লায়েন্ট এবং যেকোনো সময় কাজ করা বন্ধ করতে পারে</string>
15751572
<string name="revanced_spoof_video_streams_about_no_av1">• কোনো AV1 ভিডিও কোডেক নেই</string>
15761573
<string name="revanced_spoof_video_streams_about_kids_videos">• লগআউট করা হলে বা ছদ্মবেশী মোডে বাচ্চাদের ভিডিও চলতে নাও পারে</string>

patches/src/main/resources/addresources/values-cs-rCZ/strings.xml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1571,10 +1571,7 @@ Povolením této funkce lze odemknout vyšší kvality videa"</string>
15711571
</patch>
15721572
<patch id="misc.fix.playback.spoofVideoStreamsPatch">
15731573
<string name="revanced_spoof_video_streams_about_title">Vedlejší účinky maskování</string>
1574-
<string name="revanced_spoof_video_streams_about_android_title">Vedlejší účinky spoofingu Androidu</string>
1575-
<string name="revanced_spoof_video_streams_about_android_summary">"• Chybí nabídka zvukové stopy
1576-
• Stabilní hlasitost není k dispozici"</string>
1577-
<string name="revanced_spoof_video_streams_about_ipados_summary">• Video se může zastavit v 1:00 nebo nemusí být dostupné v některých oblastech</string>
1574+
<string name="revanced_spoof_video_streams_about_playback_failure">• Video se může zastavit v 1:00 nebo nemusí být dostupné v některých oblastech</string>
15781575
<string name="revanced_spoof_video_streams_about_experimental">• Experimentální klient a může kdykoli přestat fungovat</string>
15791576
<string name="revanced_spoof_video_streams_about_no_av1">• Žádný video kodek AV1</string>
15801577
<string name="revanced_spoof_video_streams_about_kids_videos">• Dětská videa se nemusí přehrávat, když jste odhlášení nebo v anonymním režimu</string>

patches/src/main/resources/addresources/values-da-rDK/strings.xml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1573,10 +1573,7 @@ Aktivering af dette kan låse op for højere videokvalitet"</string>
15731573
</patch>
15741574
<patch id="misc.fix.playback.spoofVideoStreamsPatch">
15751575
<string name="revanced_spoof_video_streams_about_title">Bivirkninger ved spoofing</string>
1576-
<string name="revanced_spoof_video_streams_about_android_title">Bivirkninger ved Android-spoofing</string>
1577-
<string name="revanced_spoof_video_streams_about_android_summary">"• Lydsporsmenuen mangler
1578-
• Stabil lydstyrke er ikke tilgængelig"</string>
1579-
<string name="revanced_spoof_video_streams_about_ipados_summary">• Videoen kan stoppe ved 1:00, eller er muligvis ikke tilgængelig i visse regioner</string>
1576+
<string name="revanced_spoof_video_streams_about_playback_failure">• Videoen kan stoppe ved 1:00, eller er muligvis ikke tilgængelig i visse regioner</string>
15801577
<string name="revanced_spoof_video_streams_about_experimental">• Eksperimentel klient og kan stoppe med at fungere når som helst</string>
15811578
<string name="revanced_spoof_video_streams_about_no_av1">• Intet AV1-videokodek</string>
15821579
<string name="revanced_spoof_video_streams_about_kids_videos">• Videoer til børn afspilles muligvis ikke, når du er logget ud eller i inkognitotilstand</string>

patches/src/main/resources/addresources/values-de-rDE/strings.xml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1568,10 +1568,7 @@ Durch Aktivieren dieser Option können höhere Videoqualitäten freigeschaltet w
15681568
</patch>
15691569
<patch id="misc.fix.playback.spoofVideoStreamsPatch">
15701570
<string name="revanced_spoof_video_streams_about_title">Nebenwirkungen des Spoofings</string>
1571-
<string name="revanced_spoof_video_streams_about_android_title">Android-Spoofing-Nebenwirkungen</string>
1572-
<string name="revanced_spoof_video_streams_about_android_summary">"• Audiotrack-Menü fehlt
1573-
• Stabile Lautstärke ist nicht verfügbar"</string>
1574-
<string name="revanced_spoof_video_streams_about_ipados_summary">• Video kann um 1:00 Uhr stoppen oder ist möglicherweise in einigen Regionen nicht verfügbar</string>
1571+
<string name="revanced_spoof_video_streams_about_playback_failure">• Video kann um 1:00 Uhr stoppen oder ist möglicherweise in einigen Regionen nicht verfügbar</string>
15751572
<string name="revanced_spoof_video_streams_about_experimental">• Experimenteller Client und kann jederzeit aufhören zu funktionieren</string>
15761573
<string name="revanced_spoof_video_streams_about_no_av1">• Kein AV1-Videocodec</string>
15771574
<string name="revanced_spoof_video_streams_about_kids_videos">• Kinder-Videos werden möglicherweise nicht abgespielt, wenn du abgemeldet bist oder den Inkognito-Modus verwendest.</string>

0 commit comments

Comments
 (0)