feat(network): Support for deleting a download from Sonarr

This commit is contained in:
2024-11-21 14:46:18 -07:00
parent d2e3750de6
commit 6a0049eb8f
5 changed files with 102 additions and 7 deletions
+2 -2
View File
@@ -156,7 +156,7 @@ impl<'a, 'b> Network<'a, 'b> {
.await
.map(RadarrSerdeable::from),
RadarrEvent::DeleteDownload(download_id) => self
.delete_download(download_id)
.delete_radarr_download(download_id)
.await
.map(RadarrSerdeable::from),
RadarrEvent::DeleteIndexer(indexer_id) => self
@@ -504,7 +504,7 @@ impl<'a, 'b> Network<'a, 'b> {
.await
}
async fn delete_download(&mut self, download_id: Option<i64>) -> Result<()> {
async fn delete_radarr_download(&mut self, download_id: Option<i64>) -> Result<()> {
let event = RadarrEvent::DeleteDownload(None);
let id = if let Some(dl_id) = download_id {
dl_id