Compare commits

...

2 Commits

  1. 8
      stashr/stashr.py
  2. 5
      stashr/utils.py

@ -73,8 +73,16 @@ logger = log.stashr_logger(__name__)
""" --- CREATE SIGNALS --- """
namespace = Namespace()
# STASHR NOTIFICATIONS
stashr_notification = namespace.signal('stashr_notification')
# STASHR NEW RELEASE UPDATED
stashr_new_releases_update = namespace.signal('stashr_new_releases_update')
# STASHR TASK COMPLETED
stashr_task_complete = namespace.signal('stashr_task_complete')
# STASHR VOLUME?ISSUE ADD
stashr_volume_added = namespace.signal('stashr_volume_added')
stashr_issue_added = namespace.signal('stashr_image_added')
stashr_image_downloaded = namespace.signal('stashr_image_downloaded')
""" --- CREATE READING LIST --- """
# reading_image_list = []

@ -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():

Loading…
Cancel
Save