Skip to content

Commit c68533a

Browse files
authored
fix(Spotify): Remove other ads type from the browse screen (#5333)
1 parent 146a92a commit c68533a

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

extensions/spotify/src/main/java/app/revanced/extension/spotify/misc/UnlockPremiumPatch.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,9 @@ private static class OverrideAttribute {
106106
* response which delivers browse sections.
107107
*/
108108
private static final List<Integer> REMOVED_BROWSE_SECTIONS = List.of(
109-
com.spotify.browsita.v1.resolved.Section.BRAND_ADS_FIELD_NUMBER
109+
com.spotify.browsita.v1.resolved.Section.BRAND_ADS_FIELD_NUMBER,
110+
com.spotify.browsita.v1.resolved.Section.PROMOTION_V1_FIELD_NUMBER,
111+
com.spotify.browsita.v1.resolved.Section.PROMOTION_V3_FIELD_NUMBER
110112
);
111113

112114
/**

extensions/spotify/stub/src/main/java/com/spotify/browsita/v1/resolved/Section.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,7 @@
22

33
public final class Section {
44
public static final int BRAND_ADS_FIELD_NUMBER = 6;
5+
public static final int PROMOTION_V1_FIELD_NUMBER = 3;
6+
public static final int PROMOTION_V3_FIELD_NUMBER = 5;
57
public int sectionTypeCase_;
68
}

0 commit comments

Comments
 (0)