comicapi dependency now pippable

This commit is contained in:
Iris Wildthyme 2019-04-02 20:58:23 -04:00
parent 05d0f12608
commit cbdc9876b2
3 changed files with 2 additions and 4 deletions

1
.gitignore vendored
View File

@ -31,5 +31,4 @@ vendor
client_secrets.json
# External dependencies - need proper integrating
comicapi
libunrar

View File

@ -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

View File

@ -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