mirror of
https://github.com/owntone/owntone-server.git
synced 2025-11-10 22:10:15 -05:00
Update playcounts for transcoded files
This commit is contained in:
@@ -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 */
|
/* update play counts */
|
||||||
if(bytes_copied >= (real_len * 80 / 100)) {
|
if(bytes_copied >= (real_len * 80 / 100)) {
|
||||||
db_playcount_increment(NULL,pmp3->id);
|
db_playcount_increment(NULL,pmp3->id);
|
||||||
if(!offset)
|
if(!offset)
|
||||||
config.stats.songs_served++; /* FIXME: remove stat races */
|
config.stats.songs_served++; /* FIXME: remove stat races */
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
// free(pqi);
|
// free(pqi);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user