Optimized the history saving and scrobbling functions
This commit is contained in:
1 parent
1204716a65
commit
105d5ca9c5
4 files changed
+48
-35
No files matched your search
@@ -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();
|
||||
}
|
||||
Reference in new issue
Block a user