is_unknown) { return null; } $info = $this->lastfmService->getAlbumInformation($album) ?: AlbumInformation::make(); if (!$album->has_cover) { try { $this->mediaMetadataService->tryDownloadAlbumCover($album); $info->cover = $album->cover; } catch (Throwable) { } } return $info; } public function getArtistInformation(Artist $artist): ?ArtistInformation { if ($artist->is_unknown) { return null; } $info = $this->lastfmService->getArtistInformation($artist) ?: ArtistInformation::make(); if (!$artist->has_image) { try { $this->mediaMetadataService->tryDownloadArtistImage($artist); $info->image = $artist->image; } catch (Throwable) { } } return $info; } }