From 57d2fe113a5a41c2325f4809c01ae33e3fd69c79 Mon Sep 17 00:00:00 2001 From: Stypox Date: Thu, 27 Oct 2022 23:43:27 +0200 Subject: [PATCH] Fix duplicate videos in feed "All" --- .../java/org/schabi/newpipe/database/feed/dao/FeedDAO.kt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/org/schabi/newpipe/database/feed/dao/FeedDAO.kt b/app/src/main/java/org/schabi/newpipe/database/feed/dao/FeedDAO.kt index b2b3d18a6..968d0c88f 100644 --- a/app/src/main/java/org/schabi/newpipe/database/feed/dao/FeedDAO.kt +++ b/app/src/main/java/org/schabi/newpipe/database/feed/dao/FeedDAO.kt @@ -48,7 +48,10 @@ abstract class FeedDAO { ON s.uid = f.stream_id LEFT JOIN feed_group_subscription_join fgs - ON fgs.subscription_id = f.subscription_id + ON ( + :groupId <> ${FeedGroupEntity.GROUP_ALL_ID} + AND fgs.subscription_id = f.subscription_id + ) WHERE ( :groupId = ${FeedGroupEntity.GROUP_ALL_ID}