From cbdc9876b2b39b15e2081d0c71fc102d722d10a2 Mon Sep 17 00:00:00 2001 From: Iris Wildthyme <46726098+wildthyme@users.noreply.github.com> Date: Tue, 2 Apr 2019 20:58:23 -0400 Subject: [PATCH] comicapi dependency now pippable --- .gitignore | 1 - cps/comic.py | 4 +--- requirements.txt | 1 + 3 files changed, 2 insertions(+), 4 deletions(-) diff --git a/.gitignore b/.gitignore index b3c3d439..ee415c42 100644 --- a/.gitignore +++ b/.gitignore @@ -31,5 +31,4 @@ vendor client_secrets.json # External dependencies - need proper integrating -comicapi libunrar diff --git a/cps/comic.py b/cps/comic.py index cc1b0600..7622a072 100755 --- a/cps/comic.py +++ b/cps/comic.py @@ -19,8 +19,7 @@ import os import uploader -from comicapi.comicarchive import * -from comicapi.issuestring import * +from comicapi.comicarchive import ComicArchive, MetaDataStyle from iso639 import languages as isoLanguages def extractCover(tmp_file_name, original_file_extension): @@ -31,7 +30,6 @@ def extractCover(tmp_file_name, original_file_extension): extension = ext[1].lower() if extension == '.jpg' or extension == '.jpeg': cover_data = archive.getPage(0) - print(archive.getPageName(0)) prefix = os.path.dirname(tmp_file_name) if cover_data: tmp_cover_name = prefix + '/cover' + extension diff --git a/requirements.txt b/requirements.txt index 3fb23ea3..b2561849 100644 --- a/requirements.txt +++ b/requirements.txt @@ -13,3 +13,4 @@ SQLAlchemy>=1.1.0 tornado>=4.1 Wand>=0.4.4 unidecode>=0.04.19 +git+https://github.com/wildthyme/comicapi.git@c57bda958e56cf1ae23bec1cde974b4c424b2eb4#egg=comicapi