mirror of
https://github.com/AntennaPod/AntennaPod.git
synced 2025-01-23 23:31:20 +01:00
Merge pull request #1841 from mfietz/accurate_statistics
Statistics: More accurate played duration
This commit is contained in:
commit
c50f663222
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user