From 9e44ef22d1e39607e461f2812d9213d4c83f0296 Mon Sep 17 00:00:00 2001 From: James Harvey <44349936+jmshrv@users.noreply.github.com> Date: Fri, 29 Sep 2023 21:03:11 +0100 Subject: [PATCH] Use actual album file size (need to make async) --- lib/components/DownloadsScreen/album_file_size.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/components/DownloadsScreen/album_file_size.dart b/lib/components/DownloadsScreen/album_file_size.dart index 06c998a15..c7bc44d97 100644 --- a/lib/components/DownloadsScreen/album_file_size.dart +++ b/lib/components/DownloadsScreen/album_file_size.dart @@ -21,7 +21,7 @@ class AlbumFileSize extends StatelessWidget { downloadsHelper.getDownloadedSong(item.id); if (downloadedSong?.mediaSourceInfo.size != null) { - totalSize += downloadedSong!.mediaSourceInfo.size!; + totalSize += downloadedSong?.file.statSync().size ?? 0; } }