mirror of
https://gitlab.com/nkming2/nc-photos.git
synced 2025-01-22 16:56:19 +01:00
Ignore files w/o fileId when working out album cover
This commit is contained in:
parent
53b51b77b1
commit
c4887faf33
1 changed files with 2 additions and 1 deletions
|
@ -80,7 +80,8 @@ class AlbumAutoCoverProvider extends AlbumCoverProvider {
|
||||||
.map((e) => e.file)
|
.map((e) => e.file)
|
||||||
.where((element) =>
|
.where((element) =>
|
||||||
file_util.isSupportedFormat(element) &&
|
file_util.isSupportedFormat(element) &&
|
||||||
(element.hasPreview ?? false))
|
(element.hasPreview ?? false) &&
|
||||||
|
element.fileId != null)
|
||||||
.sorted(compareFileDateTimeDescending)
|
.sorted(compareFileDateTimeDescending)
|
||||||
.firstOrNull;
|
.firstOrNull;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue