comicapi dependency now pippable
This commit is contained in:
parent
05d0f12608
commit
cbdc9876b2
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -31,5 +31,4 @@ vendor
|
||||||
client_secrets.json
|
client_secrets.json
|
||||||
|
|
||||||
# External dependencies - need proper integrating
|
# External dependencies - need proper integrating
|
||||||
comicapi
|
|
||||||
libunrar
|
libunrar
|
||||||
|
|
|
@ -19,8 +19,7 @@
|
||||||
|
|
||||||
import os
|
import os
|
||||||
import uploader
|
import uploader
|
||||||
from comicapi.comicarchive import *
|
from comicapi.comicarchive import ComicArchive, MetaDataStyle
|
||||||
from comicapi.issuestring import *
|
|
||||||
from iso639 import languages as isoLanguages
|
from iso639 import languages as isoLanguages
|
||||||
|
|
||||||
def extractCover(tmp_file_name, original_file_extension):
|
def extractCover(tmp_file_name, original_file_extension):
|
||||||
|
@ -31,7 +30,6 @@ def extractCover(tmp_file_name, original_file_extension):
|
||||||
extension = ext[1].lower()
|
extension = ext[1].lower()
|
||||||
if extension == '.jpg' or extension == '.jpeg':
|
if extension == '.jpg' or extension == '.jpeg':
|
||||||
cover_data = archive.getPage(0)
|
cover_data = archive.getPage(0)
|
||||||
print(archive.getPageName(0))
|
|
||||||
prefix = os.path.dirname(tmp_file_name)
|
prefix = os.path.dirname(tmp_file_name)
|
||||||
if cover_data:
|
if cover_data:
|
||||||
tmp_cover_name = prefix + '/cover' + extension
|
tmp_cover_name = prefix + '/cover' + extension
|
||||||
|
|
|
@ -13,3 +13,4 @@ SQLAlchemy>=1.1.0
|
||||||
tornado>=4.1
|
tornado>=4.1
|
||||||
Wand>=0.4.4
|
Wand>=0.4.4
|
||||||
unidecode>=0.04.19
|
unidecode>=0.04.19
|
||||||
|
git+https://github.com/wildthyme/comicapi.git@c57bda958e56cf1ae23bec1cde974b4c424b2eb4#egg=comicapi
|
||||||
|
|
Loading…
Reference in New Issue
Block a user