]> git.immae.eu Git - github/bastienwirtz/homer.git/blobdiff - src/components/services/Radarr.vue
Change Radarr/Sonarr v3 to use totalRecords as counting paged records is
[github/bastienwirtz/homer.git] / src / components / services / Radarr.vue
index 55896f573c1f68fbe6798d8e9188a2b4fcf018a5..5c40aaa389c71ef59a8099355eadf0867efdce04 100644 (file)
@@ -78,16 +78,12 @@ export default {
 
           if (this.item.legacyApi) {
             for (var i = 0; i < queue.length; i++) {
-              if (queue[i].series) {
+              if (queue[i].movie) {
                 this.activity++;
               }
             }
           } else {
-            for (const record of queue.records) {
-              if (record.movieId) {
-                this.activity++;
-              }
-            }
+            this.activity = queue.totalRecords;
           }
         })
         .catch((e) => {