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)