lierqiang 2 年之前
父節點
當前提交
e5ba613a2e
共有 1 個文件被更改,包括 3 次插入3 次删除
  1. 3 3
      douyin/douyin_follow/follow_dy.py

+ 3 - 3
douyin/douyin_follow/follow_dy.py

@@ -176,10 +176,10 @@ class DyFollow(object):
             publish_time = info['create_time']
             publish_time_str = time.strftime("%Y-%m-%d %H:%M:%S", time.localtime(publish_time))
             publish_day = int((int(time.time()) - publish_time) / (3600 * 24))
-            if not info['desc']:
+
+            video_title = cls.video_title(log_type, crawler, info['desc'])
+            if not video_title:
                 video_title = cls.random_title(log_type, crawler)
-            else:
-                video_title = cls.video_title(log_type, crawler, info['desc'])
 
             video_dict = {'video_title': video_title,
                           'video_id': info['aweme_id'],