Fix play count updating

This commit is contained in:
Ron Pedde 2006-03-04 08:29:57 +00:00
parent 90d5e1fa4c
commit 97fea2ff84

View File

@ -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",
bytes_copied);
/* 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);