Compare commits

..

2 Commits

Author SHA1 Message Date
Frederik Baerentsen
8c971b044d fixed zip issue (#1) 2022-06-07 21:59:03 +02:00
Frederik Baerentsen
4f3a51c911 removed gzip requirement 2022-06-07 21:46:09 +02:00
3 changed files with 28 additions and 28 deletions

View File

@ -7,5 +7,5 @@ services:
ports: ports:
- '5000:5000' - '5000:5000'
volumes: volumes:
- '/opt/data/Comics/ComicRack/Oni Press:/library:ro' - '/opt/data/Comics/ComicRack:/library:ro'
- '${PWD}/:/app' - '${PWD}/:/app'

View File

@ -45,6 +45,7 @@ def import2sql():
for file in files: for file in files:
f = os.path.join(root, file) f = os.path.join(root, file)
#try: #try:
if f.endswith('.cbz'):
try: try:
s = zipfile.ZipFile(f) s = zipfile.ZipFile(f)
#s = gzip.GzipFile(f) #s = gzip.GzipFile(f)

View File

@ -5,4 +5,3 @@ Flask-HTTPAuth==4.5.0
gevent==21.8.0 gevent==21.8.0
bs4 bs4
lxml lxml
gzip