瀏覽代碼

download video fails
add bot to dy_spider && baidu spider

luojunhui 9 月之前
父節點
當前提交
f7580def79
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      applications/etl_function/__init__.py

+ 1 - 1
applications/etl_function/__init__.py

@@ -157,7 +157,7 @@ async def download_video(file_path, platform, video_url, download_type="video"):
                             # 以1MB为单位分块下载
                             async for chunk in response.content.iter_chunked(1024 * 1024):
                                 await f.write(chunk)
-                    # 判断文件是否为空, 若
+                    # 判断文件是否为空, 若为空则继续重试
                     if await is_empty(file_path):
                         await asyncio.sleep(3)
                         retries += 1