wangkun 2 years ago
parent
commit
1b427786bc
1 changed files with 5 additions and 0 deletions
  1. 5 0
      main/weishi_recommend.py

+ 5 - 0
main/weishi_recommend.py

@@ -136,6 +136,11 @@ class Recommend:
             for i in range(len(feeds)):
                 # 视频标题过滤话题及处理特殊字符
                 weishi_title = feeds[i]["desc"]
+                if weishi_title == '':
+                    weishi_title = '。。。'
+                else:
+                    weishi_title = weishi_title
+
                 title_split1 = weishi_title.split(" #")
                 if title_split1[0] != "":
                     title1 = title_split1[0]