```yaml
- name: "Radarr"
type: "Radarr"
- url: "http://localhost:8989/"
+ url: "http://localhost:7878/"
apikey: "MY-SUPER-SECRET-API-KEY"
- target: "_blank" # optional html tag target attribute
+ target: "_blank"
legacyApi: true
```
this.fetch(`${this.apiPath}/queue?apikey=${this.item.apikey}`)
.then((queue) => {
this.activity = 0;
- for (var i = 0; i < queue.length; i++) {
- if (queue[i].movie) {
- this.activity++;
+
+ if (this.item.legacyApi) {
+ for (var i = 0; i < queue.length; i++) {
+ if (queue[i].series) {
+ this.activity++;
+ }
+ }
+ } else {
+ for (const record of queue.records) {
+ if (record.movieId) {
+ this.activity++;
+ }
}
}
})
this.fetch(`${this.apiPath}/queue?apikey=${this.item.apikey}`)
.then((queue) => {
this.activity = 0;
- for (var i = 0; i < queue.length; i++) {
- if (queue[i].series) {
- this.activity++;
+ if (this.item.legacyApi) {
+ for (var i = 0; i < queue.length; i++) {
+ if (queue[i].series) {
+ this.activity++;
+ }
+ }
+ } else {
+ for (const record of queue.records) {
+ if (record.seriesId) {
+ this.activity++;
+ }
}
}
})