diff --git a/app/src/main/java/io/legado/app/data/dao/BookDao.kt b/app/src/main/java/io/legado/app/data/dao/BookDao.kt index d95853a41..48915f1b0 100644 --- a/app/src/main/java/io/legado/app/data/dao/BookDao.kt +++ b/app/src/main/java/io/legado/app/data/dao/BookDao.kt @@ -38,7 +38,7 @@ interface BookDao { @Query( """ - select * from books where type != ${BookType.audio} and origin != '${BookType.local}' + select * from books where type != ${BookType.audio} and origin = '${BookType.local}' and ((SELECT sum(groupId) FROM book_groups where groupId > 0) & `group`) = 0 """ )