mirror of
https://github.com/gedoor/legado.git
synced 2025-08-10 00:52:30 +00:00
通过数据库判断压缩文件是否在书架上
This commit is contained in:
@@ -101,7 +101,7 @@ interface BookDao {
|
||||
@Query("select 1 from books where bookUrl = :bookUrl")
|
||||
fun has(bookUrl: String): Boolean?
|
||||
|
||||
@Query("select 1 from books where originName = :fileName or origin = ${BookType.localTag} || '::' || :fileName")
|
||||
@Query("select 1 from books where originName = :fileName or origin like '%' || :fileName")
|
||||
fun hasFile(fileName: String): Boolean?
|
||||
|
||||
@Insert(onConflict = OnConflictStrategy.REPLACE)
|
||||
|
||||
Reference in New Issue
Block a user