fix???????

This commit is contained in:
Roscoe 2025-08-30 04:57:18 +01:00
commit 79d8294ba1
Signed by: RoscoeDaWah
SSH key fingerprint: SHA256:Hqn452XQ1ETzUt/FthJu6+OFkS4NBxCv5VQSEvuk7CE

View file

@ -14,11 +14,10 @@ class LastFMCurrent extends Component {
*/
public function __construct($track) {
$this->track = $track;
$this->artUrl = null;
if (isLegacy()) {
$path = parse_url($track["image"], PHP_URL_PATH);
if ($track["image"] === "") {
$this->artUrl = null;
} else {
if ($track["image"] !== "") {
$this->artUrl = "//" . request()->getHttpHost() . "/proxy/lastfm/" . basename($path);
}
} else {