mirror of
https://github.com/owntone/owntone-server.git
synced 2025-01-16 17:23:17 -05:00
Fix play count updating
This commit is contained in:
parent
90d5e1fa4c
commit
97fea2ff84
@ -851,7 +851,9 @@ void dispatch_stream(WS_CONNINFO *pwsc, DBQUERYINFO *pqi) {
|
|||||||
DPRINTF(E_INF,L_WS,"Finished streaming file to remote: %d bytes\n",
|
DPRINTF(E_INF,L_WS,"Finished streaming file to remote: %d bytes\n",
|
||||||
bytes_copied);
|
bytes_copied);
|
||||||
/* update play counts */
|
/* update play counts */
|
||||||
db_playcount_increment(NULL,pmp3->id);
|
if(bytes_copied == real_len) {
|
||||||
|
db_playcount_increment(NULL,pmp3->id);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
config_set_status(pwsc,pqi->session_id,NULL);
|
config_set_status(pwsc,pqi->session_id,NULL);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user