mirror of
https://github.com/revanced/revanced-patches.git
synced 2025-06-12 05:07:45 +02:00
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:
@ -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 {
|
||||
|
Reference in New Issue
Block a user