wangkun 2 年之前
父节点
当前提交
9a8c6740a2
共有 1 个文件被更改,包括 4 次插入0 次删除
  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',