mirror of
https://github.com/koel/koel
synced 2024-11-24 13:13:05 +00:00
fix: breakage in generateAlbumCover
This commit is contained in:
parent
094d07fad3
commit
858ee703c4
1 changed files with 1 additions and 1 deletions
|
@ -221,7 +221,7 @@ class FileSynchronizer
|
|||
// If the album has no cover, we try to get the cover image from existing tag data
|
||||
if ($coverData) {
|
||||
$extension = explode('/', $coverData['image_mime']);
|
||||
$extension = $extension[1] ? 'png' : $extension[1];
|
||||
$extension = $extension[1] ?? 'png';
|
||||
|
||||
$this->mediaMetadataService->writeAlbumCover($album, $coverData['data'], $extension);
|
||||
|
||||
|
|
Loading…
Reference in a new issue