Change lidarr to artist instead of album

This commit is contained in:
shamoon 2023-06-08 07:12:14 -07:00
parent 3383b553d5
commit ea50a851f3
3 changed files with 9 additions and 14 deletions

View file

@ -6,11 +6,8 @@ const widget = {
proxyHandler: genericProxyHandler,
mappings: {
album: {
endpoint: "album",
map: (data) => ({
have: jsonArrayFilter(data, (item) => item?.statistics?.percentOfTracks === 100).length,
}),
artist: {
endpoint: "artist",
},
"wanted/missing": {
endpoint: "wanted/missing",