Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
D
douban-api-proxy
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
captainwong
douban-api-proxy
Commits
cbdc9876
Commit
cbdc9876
authored
Apr 03, 2019
by
Iris Wildthyme
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comicapi dependency now pippable
parent
05d0f126
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
2 additions
and
4 deletions
+2
-4
.gitignore
.gitignore
+0
-1
comic.py
cps/comic.py
+1
-3
requirements.txt
requirements.txt
+1
-0
No files found.
.gitignore
View file @
cbdc9876
...
...
@@ -31,5 +31,4 @@ vendor
client_secrets.json
# External dependencies - need proper integrating
comicapi
libunrar
cps/comic.py
View file @
cbdc9876
...
...
@@ -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
...
...
requirements.txt
View file @
cbdc9876
...
...
@@ -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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment