fix
This commit is contained in:
1 parent
7aa548214d
commit
100b90d53c
1 file changed
+3
-2
@@ -61,7 +61,7 @@ class baseComic:
|
|||||||
# cls.oneComic(comicHref,random.uniform(10,20))
|
# cls.oneComic(comicHref,random.uniform(10,20))
|
||||||
|
|
||||||
@classmethod
|
@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(" ",",")
|
author = str(author).replace("&",",").replace(" ",",")
|
||||||
comicInfo.setHomePage(url)
|
comicInfo.setHomePage(url)
|
||||||
comicInfo.setComicName(str(title))
|
comicInfo.setComicName(str(title))
|
||||||
@@ -72,7 +72,8 @@ class baseComic:
|
|||||||
comicInfo.setTags(tags)
|
comicInfo.setTags(tags)
|
||||||
comicInfo.setDep(dep)
|
comicInfo.setDep(dep)
|
||||||
#comicInfo.setCBS("韩漫")
|
#comicInfo.setCBS("韩漫")
|
||||||
comicInfo.setGenre(genre)
|
if genre != None:
|
||||||
|
comicInfo.setGenre(genre)
|
||||||
comicInfo.setLang(lang)
|
comicInfo.setLang(lang)
|
||||||
comicInfo.setListChapter(chapters)
|
comicInfo.setListChapter(chapters)
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user