Beispiel #1
0
        /// <summary>
        /// Deletes an item from the queue and download client.
        /// </summary>
        /// <param name="id">The identifier.</param>
        /// <param name="blacklist">if set to <c>true</c> blacklist item after deletion.</param>
        /// <returns></returns>
        public async Task DeleteFromQueue(int id, [Optional] bool blacklist)
        {
            var param = new Dictionary <string, object>
            {
                { "blacklist", blacklist }
            };

            await _radarrClient.Delete($"/queue/id={id}{ParameterHelper.BuildParameterString(param)}");
        }
Beispiel #2
0
        /// <summary>
        /// Delete the movie with the given ID
        /// </summary>
        /// <param name="id">Movie ID</param>
        /// <param name="deleteFiles">If true the movie folder and all files will be deleted when the movie is deleted - Default false</param>
        /// <returns></returns>
        public async Task DeleteMovie(int id, [Optional] bool deleteFiles)
        {
            var param = new Dictionary <string, object>
            {
                { "deleteFiles", deleteFiles }
            };

            await _radarrClient.Delete($"/movie/{id}{ParameterHelper.BuildParameterString(param)}");
        }
Beispiel #3
0
 /// <summary>
 /// Delete the restriction with the given ID
 /// </summary>
 /// <param name="id">Restriction ID</param>
 /// <returns></returns>
 public async Task DeleteRestriction(int id)
 {
     await _radarrClient.Delete($"/restriction/id={id}");
 }
Beispiel #4
0
 /// <summary>
 /// Delete the blacklisted item with the given ID
 /// </summary>
 /// <param name="id">Blacklist item ID</param>
 /// <returns></returns>
 public async Task DeleteBlacklist(int id)
 {
     await _radarrClient.Delete($"/blacklist/id={id}");
 }