From 58303047aafa065c1108b3fb6abfdf2c705cdfb1 Mon Sep 17 00:00:00 2001 From: simon Date: Fri, 12 Nov 2021 17:12:53 +0700 Subject: [PATCH] validate thumbnails after filesystem rescan --- tubearchivist/home/tasks.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tubearchivist/home/tasks.py b/tubearchivist/home/tasks.py index 67fd205..e86212c 100644 --- a/tubearchivist/home/tasks.py +++ b/tubearchivist/home/tasks.py @@ -17,7 +17,7 @@ from home.src.reindex import ( reindex_old_documents, scan_filesystem, ) -from home.src.thumbnails import ThumbManager +from home.src.thumbnails import ThumbManager, validate_thumbnails CONFIG = AppConfig().config REDIS_HOST = os.environ.get("REDIS_HOST") @@ -167,6 +167,7 @@ def kill_dl(task_id): def rescan_filesystem(): """check the media folder for mismatches""" scan_filesystem() + validate_thumbnails() @shared_task