diff --git a/app/View/Components/LastFMCurrent.php b/app/View/Components/LastFMCurrent.php index 85ec378..c74c080 100644 --- a/app/View/Components/LastFMCurrent.php +++ b/app/View/Components/LastFMCurrent.php @@ -16,6 +16,10 @@ public function __construct($track) { $this->track = $track; if (isLegacy()) { $path = parse_url($track["image"], PHP_URL_PATH); + if ($track["image"] === "") { + $this->artUrl = null; + return; + } $this->artUrl = "//".request()->getHttpHost()."/proxy/lastfm/".basename($path); } else { $this->artUrl = $track["image"]; diff --git a/resources/views/components/lastfm-current.blade.php b/resources/views/components/lastfm-current.blade.php index a0bfe54..973bbb3 100644 --- a/resources/views/components/lastfm-current.blade.php +++ b/resources/views/components/lastfm-current.blade.php @@ -1,6 +1,8 @@ @if (isLegacy())
{{ $track["header"] }}: |