wangkun 2 lat temu
rodzic
commit
5fd848e94d
1 zmienionych plików z 2 dodań i 2 usunięć
  1. 2 2
      main/shipinhao_get_url.py

+ 2 - 2
main/shipinhao_get_url.py

@@ -120,6 +120,7 @@ class GetUrl:
                     Feishu.update_values(log_type, 'shipinhao', 'FSDlBy', 'J2:L2',
                                          [['https://'+urls[2], 'https://'+urls[1], 'https://'+urls[0]]])
                     Common.logger(log_type).info('视频地址信息写入飞书成功\n')
+                    Common.del_charles_files('recommend')
                     break
                 else:
                     Common.logger(log_type).info('视频已有地址信息,休眠 10s')
@@ -149,5 +150,4 @@ if __name__ == '__main__':
     # print(len(Feishu.get_values_batch('recommend', 'shipinhao', 'FSDlBy')))
     while True:
         GetUrl.run_get_url('recommend')
-        Common.del_charles_files('recommend')
-        time.sleep(3)
+        time.sleep(1)