handle watchdog's file created event using the on_modified

handler

+ move processing thumbnails and album colors to the populate class
+ move processing artist colors behind the populate call in run_periodic_checks
This commit is contained in:
geoffrey45
2023-01-25 13:43:09 +03:00
parent 5b71b95d66
commit 6818f9b0e8
3 changed files with 37 additions and 5 deletions
+2 -4
View File
@@ -28,10 +28,6 @@ def run_periodic_checks():
except PopulateCancelledError:
pass
ProcessTrackThumbnails()
ProcessAlbumColors()
ProcessArtistColors()
if utils.Ping()():
try:
CheckArtistImages()
@@ -40,4 +36,6 @@ def run_periodic_checks():
"Internet connection lost. Downloading artist images stopped."
)
ProcessArtistColors()
time.sleep(300)