diff options
author | ByteHamster <info@bytehamster.com> | 2020-11-09 23:27:05 +0100 |
---|---|---|
committer | ByteHamster <info@bytehamster.com> | 2020-11-09 23:27:05 +0100 |
commit | 24c15cfc617a353b329a6a98f22aea1ba439ce68 (patch) | |
tree | b646c76d20403cdd04c9aaf2ca44afe111305d75 | |
parent | e67e5a35befdc71987c5cdd7eb853f8c0aff6598 (diff) | |
download | AntennaPod-24c15cfc617a353b329a6a98f22aea1ba439ce68.zip |
Fixed file size statistics
-rw-r--r-- | core/src/main/java/de/danoeh/antennapod/core/storage/DBReader.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/core/src/main/java/de/danoeh/antennapod/core/storage/DBReader.java b/core/src/main/java/de/danoeh/antennapod/core/storage/DBReader.java index b218a73f9..4c1f23474 100644 --- a/core/src/main/java/de/danoeh/antennapod/core/storage/DBReader.java +++ b/core/src/main/java/de/danoeh/antennapod/core/storage/DBReader.java @@ -7,6 +7,7 @@ import androidx.collection.ArrayMap; import android.text.TextUtils; import android.util.Log; +import java.io.File; import java.util.ArrayList; import java.util.Collections; import java.util.Comparator; @@ -774,7 +775,7 @@ public final class DBReader { feedTotalTime += media.getDuration() / 1000; if (media.isDownloaded()) { - totalDownloadSize = totalDownloadSize + media.getSize(); + totalDownloadSize += new File(media.getFile_url()).length(); episodesDownloadCount++; } |