Skip to content
This repository has been archived by the owner on Oct 26, 2024. It is now read-only.

Commit

Permalink
fix(YouTube - Hide layout components): Do not hide playlist shelf in …
Browse files Browse the repository at this point in the history
…library
  • Loading branch information
LisoUseInAIKyrios committed Apr 7, 2024
1 parent f6de328 commit c5d38a7
Showing 1 changed file with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -281,6 +281,7 @@ boolean isFiltered(@Nullable String identifier, String path, byte[] protobufBuff
if (searchResultRecommendations.check(protobufBufferArray).isFiltered()) {
return super.isFiltered(identifier, path, protobufBufferArray, matchedGroup, contentType, contentIndex);
}
return false;
}

// The groups are excluded from the filter due to the exceptions list below.
Expand All @@ -307,8 +308,12 @@ boolean isFiltered(@Nullable String identifier, String path, byte[] protobufBuff
// TODO: This also hides the feed Shorts shelf header
if (matchedGroup == searchResultShelfHeader && contentIndex != 0) return false;

if (contentIndex == 0 && matchedGroup == horizontalShelves && hideShelves()) {
return super.isFiltered(path, identifier, protobufBufferArray, matchedGroup, contentType, contentIndex);
if (matchedGroup == horizontalShelves) {
if (contentIndex == 0 && hideShelves()) {
return super.isFiltered(path, identifier, protobufBufferArray, matchedGroup, contentType, contentIndex);
}

return false;
}

return super.isFiltered(identifier, path, protobufBufferArray, matchedGroup, contentType, contentIndex);
Expand Down

0 comments on commit c5d38a7

Please sign in to comment.