comicapi dependency now pippable

pull/872/head
Iris Wildthyme 6 years ago
parent 05d0f12608
commit cbdc9876b2

1
.gitignore vendored

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

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

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

Loading…
Cancel
Save