Skip to content

Commit

Permalink
fix(YouTube - Hide feed components): Hide carousel shelf hiding in …
Browse files Browse the repository at this point in the history
…library in certain situations
  • Loading branch information
inotia00 authored and anddea committed Dec 21, 2024
1 parent efd8d07 commit 10e4667
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,13 @@

@SuppressWarnings("unused")
public final class CarouselShelfFilter extends Filter {
private static final String BROWSE_ID_CLIP = "FEclips";
private static final String BROWSE_ID_HOME = "FEwhat_to_watch";
private static final String BROWSE_ID_LIBRARY = "FElibrary";
private static final String BROWSE_ID_NOTIFICATION = "FEactivity";
private static final String BROWSE_ID_NOTIFICATION_INBOX = "FEnotifications_inbox";
private static final String BROWSE_ID_PLAYLIST = "VLPL";
private static final String BROWSE_ID_PREMIUM = "SPunlimited";
private static final String BROWSE_ID_SUBSCRIPTION = "FEsubscriptions";

private static final Supplier<Stream<String>> knownBrowseId = () -> Stream.of(
Expand All @@ -31,7 +33,9 @@ public final class CarouselShelfFilter extends Filter {

private static final Supplier<Stream<String>> whitelistBrowseId = () -> Stream.of(
BROWSE_ID_LIBRARY,
BROWSE_ID_NOTIFICATION_INBOX
BROWSE_ID_NOTIFICATION_INBOX,
BROWSE_ID_CLIP,
BROWSE_ID_PREMIUM
);

private final StringTrieSearch exceptions = new StringTrieSearch();
Expand Down

0 comments on commit 10e4667

Please sign in to comment.