mirror of
https://github.com/owntone/owntone-server.git
synced 2024-12-24 06:05:56 -05:00
Update playcounts for transcoded files
This commit is contained in:
parent
d036a46d60
commit
d75e1f8d48
@ -419,14 +419,13 @@ EXPORT void pi_stream(WS_CONNINFO *pwsc, char *id) {
|
||||
io_dispose(hfile);
|
||||
db_dispose_item(pmp3);
|
||||
}
|
||||
/* update play counts */
|
||||
if(bytes_copied >= (real_len * 80 / 100)) {
|
||||
db_playcount_increment(NULL,pmp3->id);
|
||||
if(!offset)
|
||||
config.stats.songs_served++; /* FIXME: remove stat races */
|
||||
}
|
||||
}
|
||||
|
||||
/* update play counts */
|
||||
if(bytes_copied >= (real_len * 80 / 100)) {
|
||||
db_playcount_increment(NULL,pmp3->id);
|
||||
if(!offset)
|
||||
config.stats.songs_served++; /* FIXME: remove stat races */
|
||||
}
|
||||
// free(pqi);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user