Synchronize starred tracks with ListenBrainz 'loves'. fixes #163

This commit is contained in:
emeric
2022-06-20 20:08:00 +02:00
parent b9305f2c25
commit 901826f4e3
36 changed files with 1175 additions and 111 deletions
+2 -1
View File
@@ -56,7 +56,8 @@ createQuery(Session& session, const Track::FindParameters& params)
assert(params.scrobbler);
query.join("starred_track s_t ON s_t.track_id = t.id")
.where("s_t.user_id = ?").bind(params.starringUser)
.where("s_t.scrobbler = ?").bind(*params.scrobbler);
.where("s_t.scrobbler = ?").bind(*params.scrobbler)
.where("s_t.scrobbling_state <> ?").bind(ScrobblingState::PendingRemove);
}
if (!params.clusters.empty())