fix(YouTube - Keyword filter): Filter videos from new subscription layout

This commit is contained in:
LisoUseInAIKyrios 2024-07-28 13:19:40 -04:00
parent 3945a37944
commit 2f2eeea5a7

View File

@ -107,6 +107,7 @@ final class KeywordContentFilter extends Filter {
"search_video_with_context.eml", "search_video_with_context.eml",
"video_with_context.eml", // Subscription tab videos. "video_with_context.eml", // Subscription tab videos.
"related_video_with_context.eml", "related_video_with_context.eml",
"video_lockup_with_attachment.eml", // A/B test for subscribed video.
"compact_video.eml", "compact_video.eml",
"inline_shorts", "inline_shorts",
"shorts_video_cell", "shorts_video_cell",
@ -120,7 +121,7 @@ final class KeywordContentFilter extends Filter {
private final StringFilterGroup containsFilter = new StringFilterGroup( private final StringFilterGroup containsFilter = new StringFilterGroup(
null, null,
"modern_type_shelf_header_content.eml", "modern_type_shelf_header_content.eml",
"shorts_lockup_cell.eml", // Part of 'shorts_shelf_carousel.eml' "shorts_lockup_cell.eml", // Part of 'shorts_shelf_carousel.eml'
"video_card.eml" // Shorts that appear in a horizontal shelf. "video_card.eml" // Shorts that appear in a horizontal shelf.
); );
@ -166,7 +167,7 @@ final class KeywordContentFilter extends Filter {
/** /**
* If filtering is temporarily turned off, the time to resume filtering. * If filtering is temporarily turned off, the time to resume filtering.
* Field is zero if no timeout is in effect. * Field is zero if no backoff is in effect.
*/ */
private volatile long timeToResumeFiltering; private volatile long timeToResumeFiltering;