fix
This commit is contained in:
parent
c9febe8d3e
commit
b539f63332
@ -162,7 +162,7 @@ class Comic:
|
||||
@classmethod
|
||||
def getHomePage(cls): return cls.getFieldValue(cls.dict_homepage)
|
||||
@classmethod
|
||||
def setIcon(cls,value): cls.dict_icon = cls.setField(cls.dict_icon,value)
|
||||
def setIcon(cls,value): cls.dict_icon = cls.setField(cls.dict_icon,value,convert=False)
|
||||
@classmethod
|
||||
def getIcon(cls): return cls.getFieldValue(cls.dict_icon)
|
||||
@classmethod
|
||||
|
||||
@ -248,13 +248,12 @@ class downloadUtils:
|
||||
#判断漫画名路径是否已存在comicname/cover.jpg, 存在跳过
|
||||
path_comic_icon = ComicPath.getPathConfComicIcon(suffix=icon_suffix)
|
||||
if not ciUtils.equIcon() and fu.exists(path_comic_icon): os.remove(path_comic_icon)
|
||||
if fu.notExists(path_comic_icon):
|
||||
while fu.notExists(path_comic_icon):
|
||||
cls.download_images([icon_url],ComicPath.getDirConfComic(),files_name=[ComicPath.COMIC_ICON_NAME+"."+icon_suffix],timeout=30)
|
||||
save_path = ComicPath.getPathCBZComicChapterIcon(icon_suffix)
|
||||
if is_new:
|
||||
#历史版本ICON
|
||||
if os.path.exists(save_path):
|
||||
os.remove(save_path)
|
||||
if os.path.exists(save_path): os.remove(save_path)
|
||||
if os.path.exists(path_comic_icon):
|
||||
base_dir = ComicPath.getDirComicChapter()
|
||||
if not os.path.exists(base_dir): os.makedirs(base_dir)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user