fix???????
This commit is contained in:
parent
c89bf3bf1a
commit
79d8294ba1
1 changed files with 2 additions and 3 deletions
|
|
@ -14,11 +14,10 @@ class LastFMCurrent extends Component {
|
||||||
*/
|
*/
|
||||||
public function __construct($track) {
|
public function __construct($track) {
|
||||||
$this->track = $track;
|
$this->track = $track;
|
||||||
|
$this->artUrl = null;
|
||||||
if (isLegacy()) {
|
if (isLegacy()) {
|
||||||
$path = parse_url($track["image"], PHP_URL_PATH);
|
$path = parse_url($track["image"], PHP_URL_PATH);
|
||||||
if ($track["image"] === "") {
|
if ($track["image"] !== "") {
|
||||||
$this->artUrl = null;
|
|
||||||
} else {
|
|
||||||
$this->artUrl = "//" . request()->getHttpHost() . "/proxy/lastfm/" . basename($path);
|
$this->artUrl = "//" . request()->getHttpHost() . "/proxy/lastfm/" . basename($path);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue