From 55a6933311a22e945cf80f68d56dbb3dc702f484 Mon Sep 17 00:00:00 2001 From: Andrew Date: Tue, 23 Mar 2021 01:46:36 -0500 Subject: [PATCH] Add image signal call to image download --- stashr/utils.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/stashr/utils.py b/stashr/utils.py index b21d62a..c49cd1a 100644 --- a/stashr/utils.py +++ b/stashr/utils.py @@ -42,7 +42,8 @@ from slugify import slugify from werkzeug.utils import secure_filename """ --- STASHR CORE IMPORTS --- """ -from stashr import log, database, parsefilename, paths, folders, naming +from stashr import log, database, parsefilename, paths, folders, naming, stashr +# from stashr.stashr import stashr_image_downloaded from stashr.comicvine import cv from stashr.config import stashrconfig @@ -914,6 +915,8 @@ def download_image(id, image_type, url): with open(filepath, 'wb') as f: f.write(r.content) + # CALL STASHR SIGNAL FOR IMAGE DL HERE + stashr.stashr_image_downloaded.send(filepath=filepath, folderpath=folderpath, image_id=id, image_type=image_type) def update_volumes_from_release_list():