mirror of https://github.com/lidarr/Lidarr
Fixed: Error on artist details if refresh isn't finished
This commit is contained in:
parent
a431a1ce95
commit
e67f0becad
|
@ -29,11 +29,13 @@ function getAlbumTypeStatistics(albums) {
|
|||
let sizeOnDisk = 0;
|
||||
|
||||
albums.forEach((album) => {
|
||||
sizeOnDisk = sizeOnDisk + album.statistics.sizeOnDisk;
|
||||
trackFileCount = trackFileCount + album.statistics.trackFileCount;
|
||||
if (album.statistics) {
|
||||
sizeOnDisk = sizeOnDisk + album.statistics.sizeOnDisk;
|
||||
trackFileCount = trackFileCount + album.statistics.trackFileCount;
|
||||
|
||||
if (album.statistics.trackFileCount === album.statistics.totalTrackCount || (album.monitored && isBefore(album.airDateUtc))) {
|
||||
albumCount++;
|
||||
if (album.statistics.trackFileCount === album.statistics.totalTrackCount || (album.monitored && isBefore(album.airDateUtc))) {
|
||||
albumCount++;
|
||||
}
|
||||
}
|
||||
|
||||
if (album.monitored) {
|
||||
|
|
Loading…
Reference in New Issue