修复只有标题没有文章内容导致的获取字数失败的BUG
This commit is contained in:
parent
bd7ec11c32
commit
ffd230c109
3
Gmeek.py
3
Gmeek.py
@ -327,11 +327,12 @@ class GMEEK():
|
||||
|
||||
self.blogBase[listJsonName][postNum]["postSourceUrl"]="https://github.com/"+options.repo_name+"/issues/"+str(issue.number)
|
||||
self.blogBase[listJsonName][postNum]["commentNum"]=issue.get_comments().totalCount
|
||||
self.blogBase[listJsonName][postNum]["wordCount"]=len(issue.body)
|
||||
|
||||
if issue.body==None:
|
||||
self.blogBase[listJsonName][postNum]["description"]=''
|
||||
self.blogBase[listJsonName][postNum]["wordCount"]=0
|
||||
else:
|
||||
self.blogBase[listJsonName][postNum]["wordCount"]=len(issue.body)
|
||||
if self.blogBase["rssSplit"]=="sentence":
|
||||
if self.blogBase["i18n"]=="CN":
|
||||
period="。"
|
||||
|
||||
Loading…
Reference in New Issue
Block a user