Exposed songid in attributes, reimplemented lastfm primary artist scrobbling, cleaned up mkinterop

This commit is contained in:
Core 2022-07-30 17:42:15 +01:00
parent 6370ef3003
commit d4eac9a17c
No known key found for this signature in database
GPG key ID: FE9BF1B547F8F3C6
3 changed files with 32 additions and 14 deletions

View file

@ -131,7 +131,7 @@ export default class lastfm {
if (!attributes.lfmAlbum) {
this._lfm.album.getInfo({
"artist": attributes.artistName,
"artist": attributes.primaryArtist,
"album": attributes.albumName
}, (err: any, data: any) => {
if (err) {
@ -144,7 +144,7 @@ export default class lastfm {
}
})
} else {
this._lfm.track.getCorrection(attributes.artistName, attributes.name, (err: any, data: any) => {
this._lfm.track.getCorrection(attributes.primaryArtist, attributes.name, (err: any, data: any) => {
if (err) {
console.error(`[${lastfm.name}] [track.getCorrection] Error: ${typeof err === "string" ? err : err.message}`)
return {};