mirror of
https://github.com/owntone/owntone-server.git
synced 2024-12-30 17:13:22 -05:00
Fix play count updating
This commit is contained in:
parent
90d5e1fa4c
commit
97fea2ff84
@ -851,8 +851,10 @@ 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 */
|
||||||
|
if(bytes_copied == real_len) {
|
||||||
db_playcount_increment(NULL,pmp3->id);
|
db_playcount_increment(NULL,pmp3->id);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
config_set_status(pwsc,pqi->session_id,NULL);
|
config_set_status(pwsc,pqi->session_id,NULL);
|
||||||
r_close(file_fd);
|
r_close(file_fd);
|
||||||
|
Loading…
Reference in New Issue
Block a user