dynamiccookies / Radarr-Assistant

An interface that ties into Radarr's API to allow searching for movies, verifying movies currently in the Radarr library, and adding movies to Radarr's queue.
MIT License
0 stars 0 forks source link

Build re-add/upgrade option for movies already in library #24

Closed dynamiccookies closed 2 years ago

dynamiccookies commented 2 years ago

When a movie is already in the library or queue, if Add Movie is called, the following error is returned:

[
  {
    "propertyName": "TmdbId",
    "errorMessage": "This movie has already been added",
    "attemptedValue": 10371,
    "severity": "error",
    "errorCode": "MovieExistsValidator",
    "formattedMessageArguments": [],
    "formattedMessagePlaceholderValues": {
      "propertyName": "Tmdb Id",
      "propertyValue": 10371
    }
  }
]
dynamiccookies commented 2 years ago

Adding comment from duplicate issue #27:

Sometimes a bad copy of a movie is added:

dynamiccookies commented 2 years ago

Found help in a post on Reddit that talked about the MoviesSearch API command. Also found a solved issue about the MoviesSearch command on the Radarr GitHub repo.

Looks like API call to use is /api/v3/command instead of /api/v3/movie. And the data array to pass through the POST call should be formatted like this: {name: "MoviesSearch", movieIds: [20]} Multiple movieIds can be added to the array as comma separated values; although, I won't need that for this feature.