php-last.fm-api icon indicating copy to clipboard operation
php-last.fm-api copied to clipboard

Can't get album or artist from User::getTopTracks or User::getLovedTracks

Open benbristow opened this issue 11 years ago • 0 comments

Example return from getRecentTracks (Works):

Track Object ( [artist:Track:private] => Foals [album:Track:private] => Antidotes: Tour Edition [duration:Track:private] => 0 [topTags:Track:private] => Array ( ) [id:Track:private] => 0 [location:Track:private] => [streamable:Track:private] => [fullTrack:Track:private] => [wiki:Track:private] => SimpleXMLElement Object ( ) [lastPlayed:Track:private] => 1362914640 [name:Media:private] => Hummer [mbid:Media:private] => 496bd5dd-6bab-44cf-9f45-14b064a0d749 [url:Media:private] => http://www.last.fm/music/Foals/_/Hummer [images:Media:private] => Array ( [0] => http://userserve-ak.last.fm/serve/34s/83845153.jpg [1] => http://userserve-ak.last.fm/serve/64s/83845153.jpg [2] => http://userserve-ak.last.fm/serve/126/83845153.jpg [4] => http://userserve-ak.last.fm/serve/300x300/83845153.jpg ) [listeners:Media:private] => 0 [playCount:Media:private] => 0 )

Return from getLovedTracks (Doesn't work):

Track Object ( [artist:Track:private] => Artist Object ( [streamable:Artist:private] => 0 [similar:Artist:private] => Array ( ) [tags:Artist:private] => Array ( ) [biography:Artist:private] => [match:Artist:private] => 0 [name:Media:private] => AC/DC [mbid:Media:private] => 66c662b6-6e2f-4930-8610-912e24c63ed1 [url:Media:private] => http://www.last.fm/music/AC%2FDC [images:Media:private] => Array ( ) [listeners:Media:private] => 0 [playCount:Media:private] => 0 ) [album:Track:private] => [duration:Track:private] => 0 [topTags:Track:private] => Array ( ) [id:Track:private] => 0 [location:Track:private] => [streamable:Track:private] => [fullTrack:Track:private] => [wiki:Track:private] => SimpleXMLElement Object ( ) [lastPlayed:Track:private] => 1362914760 [name:Media:private] => Back in Black [mbid:Media:private] => 0e2defc5-0731-4b0a-84b2-659e86f18716 [url:Media:private] => http://www.last.fm/music/AC%2FDC/_/Back+in+Black [images:Media:private] => Array ( [0] => http://userserve-ak.last.fm/serve/34s/81981459.jpg [1] => http://userserve-ak.last.fm/serve/64s/81981459.jpg [2] => http://userserve-ak.last.fm/serve/126/81981459.jpg [4] => http://userserve-ak.last.fm/serve/300x300/81981459.jpg ) [listeners:Media:private] => 0 [playCount:Media:private] => 0 )

benbristow avatar Mar 10 '13 18:03 benbristow