Merge pull request #1841 from mfietz/accurate_statistics

Statistics: More accurate played duration
This commit is contained in:
Tom Hennen 2016-04-01 19:36:16 -04:00
commit c50f663222

View File

@ -949,12 +949,8 @@ public final class DBReader {
continue; continue;
} }
if(item.isPlayed()) { feedPlayedTime += media.getPlayedDuration() / 1000;
feedPlayedTime += media.getDuration() / 1000; if(media.getPlayedDuration() > 0) {
} else {
feedPlayedTime += media.getPosition() / 1000;
}
if(item.isPlayed() || media.getPosition() != 0) {
episodesStarted++; episodesStarted++;
} }
feedTotalTime += media.getDuration() / 1000; feedTotalTime += media.getDuration() / 1000;