Add favorites, cached built-in playlists (#11)

This commit is contained in:
vfsfitvnm
2022-07-06 20:19:27 +02:00
parent 59b6c61bb2
commit 2e542d3c1a
5 changed files with 347 additions and 28 deletions

View File

@@ -52,10 +52,6 @@ interface Database {
}
}
@Transaction
@Query("SELECT * FROM Song WHERE totalPlayTimeMs > 0 ORDER BY ROWID DESC")
fun history(): Flow<List<DetailedSong>>
@Transaction
@Query("SELECT * FROM Song WHERE likedAt IS NOT NULL ORDER BY likedAt DESC")
fun favorites(): Flow<List<DetailedSong>>