fix
This commit is contained in:
1 parent
db6761aa32
commit
26e3a8f19a
1 file changed
+3
-4
@@ -145,13 +145,12 @@ class comicEntity:
|
|||||||
is_next = cls.comicChapterDownload(chapter_url)
|
is_next = cls.comicChapterDownload(chapter_url)
|
||||||
comicInfo.nextInfoToImgChapter()
|
comicInfo.nextInfoToImgChapter()
|
||||||
#下载完成后, 开始解密图片
|
#下载完成后, 开始解密图片
|
||||||
if scramble:
|
chapter_dir = comicInfo.getDirComicChapter()
|
||||||
|
if scramble and os.path.exists(chapter_dir):
|
||||||
#获取章节图片路径
|
#获取章节图片路径
|
||||||
chapter_dir = comicInfo.getDirComicChapter()
|
|
||||||
dirs = os.listdir(chapter_dir)
|
dirs = os.listdir(chapter_dir)
|
||||||
for img in dirs:
|
for img in dirs:
|
||||||
isScramble = str(img).startswith("scramble=")
|
if img.startswith("scramble="):
|
||||||
if isScramble:
|
|
||||||
c_path = os.path.join(chapter_dir, img)
|
c_path = os.path.join(chapter_dir, img)
|
||||||
#imageUtils.getScrambleImage(c_path)
|
#imageUtils.getScrambleImage(c_path)
|
||||||
imageUtils.encode_scramble_image(c_path)
|
imageUtils.encode_scramble_image(c_path)
|
||||||
|
|||||||
Reference in new issue
Block a user