Merge pull request #4680 from ByteHamster/fix-file-size-stats
Fixed file size statistics
This commit is contained in:
commit
4decd1d9fe
|
@ -7,6 +7,7 @@ import androidx.collection.ArrayMap;
|
||||||
import android.text.TextUtils;
|
import android.text.TextUtils;
|
||||||
import android.util.Log;
|
import android.util.Log;
|
||||||
|
|
||||||
|
import java.io.File;
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.Collections;
|
import java.util.Collections;
|
||||||
import java.util.Comparator;
|
import java.util.Comparator;
|
||||||
|
@ -774,7 +775,7 @@ public final class DBReader {
|
||||||
feedTotalTime += media.getDuration() / 1000;
|
feedTotalTime += media.getDuration() / 1000;
|
||||||
|
|
||||||
if (media.isDownloaded()) {
|
if (media.isDownloaded()) {
|
||||||
totalDownloadSize = totalDownloadSize + media.getSize();
|
totalDownloadSize += new File(media.getFile_url()).length();
|
||||||
episodesDownloadCount++;
|
episodesDownloadCount++;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue