mirror of
https://github.com/ajurna/cbwebreader.git
synced 2026-11-02 18:46:53 +00:00
change base_dir to not need value.
renamed index to comic_list
This commit is contained in:
1 parent
4c3d75916f
commit
f5c146e925
5 files changed
+15
-16
No files matched your search
+2
-2
@@ -133,9 +133,9 @@ class ComicBook(models.Model):
|
||||
return out
|
||||
def process_comic_book(base_dir, comic_path, comic_file_name):
|
||||
try:
|
||||
cbx = rarfile.RarFile(path.join(base_dir.value, comic_path))
|
||||
cbx = rarfile.RarFile(path.join(base_dir, comic_path))
|
||||
except rarfile.BadRarFile:
|
||||
cbx = zipfile.ZipFile(path.join(base_dir.value, comic_path))
|
||||
cbx = zipfile.ZipFile(path.join(base_dir, comic_path))
|
||||
except zipfile.BadZipfile:
|
||||
return False
|
||||
|
||||
|
||||
Reference in new issue
Block a user