From 97fea2ff8499dcd82ebd4c78ac0109dafe99ac82 Mon Sep 17 00:00:00 2001 From: Ron Pedde Date: Sat, 4 Mar 2006 08:29:57 +0000 Subject: [PATCH] Fix play count updating --- src/dispatch.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/dispatch.c b/src/dispatch.c index bc603c05..108cb2b2 100644 --- a/src/dispatch.c +++ b/src/dispatch.c @@ -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);