Optimized the history saving and scrobbling functions

This commit is contained in:
antonio
2023-01-06 21:42:57 +01:00
parent 1204716a65
commit 105d5ca9c5
4 changed files with 48 additions and 35 deletions

View File

@@ -40,9 +40,6 @@ public interface QueueDao {
@Query("UPDATE queue SET playing_changed=:timestamp WHERE id=:id")
void setPlayingChanged(String id, long timestamp);
@Query("SELECT track_order FROM queue ORDER BY last_play DESC LIMIT 1")
int getLastPlay();
@Query("SELECT playing_changed FROM queue ORDER BY last_play DESC LIMIT 1")
long getLastPlayedTimestamp();
@Query("SELECT * FROM queue ORDER BY last_play DESC LIMIT 1")
Queue getLastPlayed();
}