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