fix(Spotify - Unlock Spotify Premium): Remove restrictions for Google voice assistant (#4702)

Co-authored-by: LisoUseInAIKyrios <118716522+LisoUseInAIKyrios@users.noreply.github.com>
Co-authored-by: oSumAtrIX <johan.melkonyan1@web.de>
This commit is contained in:
Brosssh 2025-04-11 21:33:59 +02:00 committed by GitHub
parent e5ffd2c353
commit 106202f9eb
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 76 additions and 4 deletions

View file

@ -94,7 +94,7 @@ public final class UnlockPremiumPatch {
);
/**
* Override attributes injection point.
* Injection point. Override account attributes.
*/
public static void overrideAttribute(Map<String, /*AccountAttribute*/ Object> attributes) {
try {
@ -119,7 +119,14 @@ public final class UnlockPremiumPatch {
}
/**
* Remove ads sections from home injection point.
* Injection point. Remove station data from Google assistant URI.
*/
public static String removeStationString(String spotifyUriOrUrl) {
return spotifyUriOrUrl.replace("spotify:station:", "spotify:");
}
/**
* Injection point. Remove ads sections from home.
*/
public static void removeHomeSections(List<Section> sections) {
try {