admin commited on
Commit
077ba2d
·
1 Parent(s): 3b23771
Files changed (1) hide show
  1. modules/tiktok.py +3 -0
modules/tiktok.py CHANGED
@@ -53,6 +53,9 @@ def infer(video_url: str, direct_lnk_out: bool, cache=f"{TMP_DIR}/tiktok"):
53
  else:
54
  raise ConnectionError(f"接口调用失败, 错误码: HTTP {retcode}")
55
 
 
 
 
56
  except Exception as e:
57
  status = f"视频解析失败: {e}"
58
 
 
53
  else:
54
  raise ConnectionError(f"接口调用失败, 错误码: HTTP {retcode}")
55
 
56
+ except requests.exceptions.ChunkedEncodingError as e:
57
+ return infer(video_url, direct_lnk_out, cache)
58
+
59
  except Exception as e:
60
  status = f"视频解析失败: {e}"
61