mirror of
https://github.com/antebudimir/tempus.git
synced 2026-01-01 09:53:33 +00:00
Fix instant mix overriding added value in songs
This commit is contained in:
parent
7576fbb75b
commit
308ddf6c7c
9 changed files with 124 additions and 75 deletions
|
|
@ -89,7 +89,16 @@ public interface SongDao {
|
|||
void deleteAll();
|
||||
|
||||
@Update
|
||||
public void update(Song song);
|
||||
void update(Song song);
|
||||
|
||||
@Query("UPDATE song SET play_count = :playCount AND last_play = :lastPlay WHERE id = :id")
|
||||
void updatePlayCount(String id, int playCount, long lastPlay);
|
||||
|
||||
@Query("UPDATE song SET favorite = :isFavorite WHERE id = :id")
|
||||
void updateFavorite(String id, boolean isFavorite);
|
||||
|
||||
@Query("SELECT * FROM song WHERE id IN (:ids)")
|
||||
List<Song> getSongsByID(List<String> ids);
|
||||
|
||||
@Query("SELECT * FROM song ORDER BY RANDOM() LIMIT :number")
|
||||
List<Song> random(int number);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue