From 100b90d53cb2e1a9a76cabf36e24dc8e0b847f5b Mon Sep 17 00:00:00 2001 From: caiwx86 Date: Mon, 23 Jan 2023 09:56:57 +0800 Subject: [PATCH] fix --- utils/base/BaseComicEntity.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/utils/base/BaseComicEntity.py b/utils/base/BaseComicEntity.py index e502bf2..6e2a82f 100644 --- a/utils/base/BaseComicEntity.py +++ b/utils/base/BaseComicEntity.py @@ -61,7 +61,7 @@ class baseComic: # cls.oneComic(comicHref,random.uniform(10,20)) @classmethod - def oneComic(cls,url,title,author,icon,tags,dep,chapters,chapter_href,alias=None,genre="韩漫",lang="zh",sleep=None): + def oneComic(cls,url,title,author,icon,tags,dep,chapters,chapter_href,alias=None,genre=None,lang="zh",sleep=None): author = str(author).replace("&",",").replace(" ",",") comicInfo.setHomePage(url) comicInfo.setComicName(str(title)) @@ -72,7 +72,8 @@ class baseComic: comicInfo.setTags(tags) comicInfo.setDep(dep) #comicInfo.setCBS("韩漫") - comicInfo.setGenre(genre) + if genre != None: + comicInfo.setGenre(genre) comicInfo.setLang(lang) comicInfo.setListChapter(chapters)