mirror of
https://github.com/owntone/owntone-server.git
synced 2025-03-29 08:43:42 -04: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);
|
io_dispose(hfile);
|
||||||
db_dispose_item(pmp3);
|
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);
|
// free(pqi);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user