Skip to content

Commit

Permalink
fix notification event handler library filter
Browse files Browse the repository at this point in the history
  • Loading branch information
Snd-R committed Sep 8, 2024
1 parent e2a0ed9 commit 5421652
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions komf-app/src/main/kotlin/snd/komf/app/module/MediaServerModule.kt
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,11 @@ class MediaServerModule(
mediaServerClient = komgaClient,
appriseService = appriseService,
discordWebhookService = discordWebhookService,
libraryFilter = { komgaConfig.eventListener.notificationsLibraryFilter.contains(it) },
libraryFilter = {
val libraries = komgaConfig.eventListener.notificationsLibraryFilter
if (libraries.isEmpty()) true
else libraries.contains(it)
},
mediaServer = KOMGA
)

Expand Down Expand Up @@ -193,7 +197,11 @@ class MediaServerModule(
mediaServerClient = kavitaMediaServerClient,
appriseService = appriseService,
discordWebhookService = discordWebhookService,
libraryFilter = { kavitaConfig.eventListener.notificationsLibraryFilter.contains(it) },
libraryFilter = {
val libraries = kavitaConfig.eventListener.notificationsLibraryFilter
if (libraries.isEmpty()) true
else libraries.contains(it)
},
mediaServer = KAVITA
)

Expand Down

0 comments on commit 5421652

Please sign in to comment.