wangkun 2 years ago
parent
commit
9a8c6740a2
1 changed files with 4 additions and 0 deletions
  1. 4 0
      main/shipinhao_get_url.py

+ 4 - 0
main/shipinhao_get_url.py

@@ -127,6 +127,10 @@ class GetUrl:
                 # print('获取视频头像/封面/播放地址')
                 urls = cls.get_url(log_type)
                 if urls == '未找到url':
+                    time.sleep(1)
+                    cls.write_url(log_type)
+                elif urls is None:
+                    time.sleep(1)
                     cls.write_url(log_type)
                 else:
                     Feishu.update_values(log_type, 'shipinhao', 'FSDlBy', 'J2:L2',