mirror of
https://gitlab.com/nkming2/nc-photos.git
synced 2025-01-22 08:46:18 +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)
|
||||
.where((element) =>
|
||||
file_util.isSupportedFormat(element) &&
|
||||
(element.hasPreview ?? false))
|
||||
(element.hasPreview ?? false) &&
|
||||
element.fileId != null)
|
||||
.sorted(compareFileDateTimeDescending)
|
||||
.firstOrNull;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue