Update playcounts for transcoded files

This commit is contained in:
Ron Pedde 2007-10-24 03:59:34 +00:00
parent d036a46d60
commit d75e1f8d48

View File

@ -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);
}