diff --git a/pom.xml b/pom.xml index 94fdd83..1743bdb 100644 --- a/pom.xml +++ b/pom.xml @@ -6,7 +6,7 @@ tv.mangrana mangrana-commons - 7.1.2 + 7.1.3 8 diff --git a/src/main/java/tv/mangrana/sonarr/api/client/gateway/SonarrAPIInterface.java b/src/main/java/tv/mangrana/sonarr/api/client/gateway/SonarrAPIInterface.java index d3eca3b..9e00f7e 100644 --- a/src/main/java/tv/mangrana/sonarr/api/client/gateway/SonarrAPIInterface.java +++ b/src/main/java/tv/mangrana/sonarr/api/client/gateway/SonarrAPIInterface.java @@ -36,7 +36,7 @@ public interface SonarrAPIInterface extends APIInterface { @DELETE @Path("/queue/bulk") @Consumes({ MediaType.APPLICATION_JSON }) - void deleteQueueElements(QueueBulk ids, @QueryParam("apikey") String apikey); + void deleteQueueElements(QueueBulk ids, @QueryParam("removeFromClient") boolean removeTorrents, @QueryParam("apikey") String apikey); @GET @Path("/series/{id}") diff --git a/src/main/java/tv/mangrana/sonarr/api/client/gateway/SonarrApiGateway.java b/src/main/java/tv/mangrana/sonarr/api/client/gateway/SonarrApiGateway.java index a6e564c..359e95d 100644 --- a/src/main/java/tv/mangrana/sonarr/api/client/gateway/SonarrApiGateway.java +++ b/src/main/java/tv/mangrana/sonarr/api/client/gateway/SonarrApiGateway.java @@ -41,7 +41,7 @@ public class SonarrApiGateway { } public void deleteQueueElements(List ids) { - proxy.deleteQueueElements(new QueueBulk(ids), apiKey); + proxy.deleteQueueElements(new QueueBulk(ids), false, apiKey); log("sent Delete command to Sonarr for the queue elements with ids "+ids); }