Skip to content

Commit

Permalink
Fixed duplicate discord notifications
Browse files Browse the repository at this point in the history
  • Loading branch information
zachstultz authored Dec 20, 2023
1 parent 3d692c6 commit ce40134
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions komga_cover_extractor.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
from settings import *

# Version of the script
script_version = (2, 4, 21)
script_version = (2, 4, 22)
script_version_text = "v{}.{}.{}".format(*script_version)

# Paths = existing library
Expand Down Expand Up @@ -980,7 +980,9 @@ def on_created(self, event):

# Send any remaining queued notifications to Discord
if grouped_notifications:
send_discord_message(None, grouped_notifications)
sent_status = send_discord_message(None, grouped_notifications)
if sent_status:
grouped_notifications = []

send_message("\nWatching for changes... (WATCHDOG)", discord=False)

Expand Down

0 comments on commit ce40134

Please sign in to comment.