Skip to content

Commit

Permalink
[Mediaserver] Honor delete property for movies too
Browse files Browse the repository at this point in the history
  • Loading branch information
Schaka committed Sep 28, 2024
1 parent 91e6446 commit b1c13ec
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ abstract class BaseMediaServerService(
override fun cleanupTvShows(items: List<LibraryItem>) {

if (!mediaServerProperties.delete) {
log.info("Deletion from $serviceName disabled")
log.info("Deletion for $serviceName disabled - not deleting any orphaned files")
return
}

Expand Down Expand Up @@ -122,6 +122,12 @@ abstract class BaseMediaServerService(
}

override fun cleanupMovies(items: List<LibraryItem>) {

if (!mediaServerProperties.delete) {
log.info("Deletion for $serviceName disabled - not deleting any orphaned files")
return
}

val mediaServerMovies = getMovieLibrary()

for (movie: LibraryItem in items) {
Expand Down

0 comments on commit b1c13ec

Please sign in to comment.