Skip to content

Commit

Permalink
Chore: filter Radarr movie response (#4199)
Browse files Browse the repository at this point in the history
Co-authored-by: shamoon <[email protected]>
  • Loading branch information
markp-mckinney and shamoon authored Oct 27, 2024
1 parent 7cbba1f commit bf2efce
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/widgets/radarr/widget.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,10 @@ const widget = {
wanted: jsonArrayFilter(data, (item) => item.monitored && !item.hasFile && item.isAvailable).length,
have: jsonArrayFilter(data, (item) => item.hasFile).length,
missing: jsonArrayFilter(data, (item) => item.monitored && !item.hasFile).length,
all: asJson(data),
all: asJson(data).map((entry) => ({
title: entry.title,
id: entry.id,
})),
}),
},
"queue/status": {
Expand Down

0 comments on commit bf2efce

Please sign in to comment.