Merge pull request #4680 from ByteHamster/fix-file-size-stats

Fixed file size statistics
This commit is contained in:
ByteHamster 2020-11-11 22:21:00 +01:00 committed by GitHub
commit 4decd1d9fe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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++;
}