Fixed file size statistics

This commit is contained in:
ByteHamster 2020-11-09 23:27:05 +01:00
parent e67e5a35be
commit 24c15cfc61
1 changed files with 2 additions and 1 deletions

View File

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