Skip to content

Commit

Permalink
[Radarr] Skip movies without files
Browse files Browse the repository at this point in the history
  • Loading branch information
Schaka committed Mar 5, 2024
1 parent 290e72d commit 3a39ac1
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ class RadarrService(
override fun getEntries(): List<LibraryItem> {
return radarrClient.getAllMovies().mapNotNull { movie ->
radarrClient.getHistory(movie.id)
.filter { it.eventType == "downloadFolderImported" && it.data.droppedPath != null }
.filter { movie.movieFile != null && it.eventType == "downloadFolderImported" && it.data.droppedPath != null }
.map {
LibraryItem(
movie.id,
Expand Down

0 comments on commit 3a39ac1

Please sign in to comment.