causefx / Organizr

HTPC/Homelab Services Organizer - Written in PHP
GNU General Public License v3.0
5.12k stars 290 forks source link

Radarr queue not working when there are "unknown" items in the Radarr queue #1452

Closed GilbN closed 3 years ago

GilbN commented 4 years ago
Organizr Version: V 2.1
Branch: v2-develop
WebServer: Nginx
Operating System: docker

Problem Description:

The Radarr queue doesnt work when you have "unknown" movies in the Radarr queue.

The v1 endpoint shows the item /radarr/api/queue

[
  {
    "quality": {
      "quality": {
        "id": 0,
        "name": "Unknown",
        "source": "unknown",
        "resolution": 0,
        "modifier": "none"
      },
      "revision": {
        "version": 1,
        "real": 0,
        "isRepack": false
      }
    },
    "size": 1347812855.0,
    "title": "ASDASDASDASDASD.UK.S01E05.1080p.WEB.H264-SAASDSD",
    "sizeleft": 0.0,
    "timeleft": "00:00:00",
    "estimatedCompletionTime": "2020-08-28T10:22:10.7686081Z",
    "status": "Completed",
    "trackedDownloadStatus": "Warning",
    "statusMessages": [
      {
        "title": "ASDASASDSADDSA.UK.S01E05.1080p.WEB.H264-ASDDSASADSAD",
        "messages": [
          "Movie title mismatch, automatic import is not possible."
        ]
      }
    ],
    "downloadId": "ASDSF9876SDF897SDF897SDF897SD6F89756",
    "protocol": "torrent",
    "id": 179294695
  }
]

But not the v3 : /radarr/api/v3/queue

{
  "page": 1,
  "pageSize": 10,
  "sortKey": "timeleft",
  "sortDirection": "ascending",
  "totalRecords": 0,
  "records": []
}
Reproduction Steps:

Add the Radarr label to any item in your torrent client.


Errors on screen? If so paste here:

chrome_5J2dMlXcFD

functions.js?v=1287e84618e25b829e666d094be1d237adf4d59a:6459 TypeError: Cannot read property 'title' of undefined error: [object Object]
causefx commented 3 years ago

i believe this has been fixed.