mirror of
https://github.com/janeczku/calibre-web
synced 2024-12-25 09:30:31 +00:00
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
|
||||
|
||||
# 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…
Reference in New Issue
Block a user