我正在尝试使用mbid的track.getInfo方法获取跟踪信息。首先,我要请求用户喜欢的曲目。所以我将请求发送到:
作为响应,我收到曲目列表,然后从该列表中选择一个曲目。例如,上一个响应中的真实响应:
{
"artist": {
"url": "https://www.last.fm/music/Everlast",
"name": "Everlast",
"mbid": "ca39d50f-9885-420e-88d6-9c3f64038773"
},
"mbid": "32ea4d42-ab50-3b94-a9ce-5d7a3a8d11c8",
"date": {
"uts": "1576515437",
"#text": "16 Dec 2019, 16:57"
},
"url": "https://www.last.fm/music/Everlast/_/Ends",
"image": [
{
"size": "small",
"#text": "https://lastfm.freetls.fastly.net/i/u/34s/2a96cbd8b46e442fc41c2b86b821562f.png"
},
{
"size": "medium",
"#text": "https://lastfm.freetls.fastly.net/i/u/64s/2a96cbd8b46e442fc41c2b86b821562f.png"
},
{
"size": "large",
"#text": "https://lastfm.freetls.fastly.net/i/u/174s/2a96cbd8b46e442fc41c2b86b821562f.png"
},
{
"size": "extralarge",
"#text": "https://lastfm.freetls.fastly.net/i/u/300x300/2a96cbd8b46e442fc41c2b86b821562f.png"
}
],
"name": "Ends",
"streamable": {
"fulltrack": "0",
"#text": "0"
}
},
然后我将请求发送到
但作为回应,我收到了
{
"error": 6,
"message": "Track not found",
"links": []
}
我试图按其艺术家和名称查找曲目,并且该曲目有效,但是API对该曲目返回了另一个mbid。我使用错误的mbid吗?请帮助我,我正在使用laftFM API攻读硕士学位,而我的期限即将到来。