Skip to content

Commit

Permalink
delete including files (#15)
Browse files Browse the repository at this point in the history
* delete including files

* delete, addimportexclusion false
  • Loading branch information
woiza authored Feb 2, 2024
1 parent e26dc6b commit 57565cc
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pkg/bot/delete.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import (

tgbotapi "github.com/go-telegram-bot-api/telegram-bot-api/v5"
"github.com/woiza/telegram-bot-radarr/pkg/utils"
"golift.io/starr"
"golift.io/starr/radarr"
)

Expand Down Expand Up @@ -248,7 +249,9 @@ func (b *Bot) handleDeleteMovieYes(update tgbotapi.Update, command *userDeleteMo
deletedMovies = append(deletedMovies, movie.Title)
}
bulkEdit := radarr.BulkEdit{
MovieIDs: movieIDs,
MovieIDs: movieIDs,
DeleteFiles: starr.True(),
AddImportExclusion: starr.False(),
}

err := b.RadarrServer.DeleteMovies(&bulkEdit)
Expand Down

0 comments on commit 57565cc

Please sign in to comment.