mirror of
https://github.com/jxxghp/MoviePilot.git
synced 2026-03-20 03:57:30 +08:00
perf(modules): set a timeout on alipan HTTP calls
This commit is contained in:
@@ -558,7 +558,7 @@ class AliPan(StorageBase, metaclass=WeakSingleton):
|
|||||||
"""
|
"""
|
||||||
上传单个分片
|
上传单个分片
|
||||||
"""
|
"""
|
||||||
return requests.put(upload_url, data=data)
|
return requests.put(upload_url, data=data, timeout=10.0)
|
||||||
|
|
||||||
def _list_uploaded_parts(self, drive_id: str, file_id: str, upload_id: str) -> dict:
|
def _list_uploaded_parts(self, drive_id: str, file_id: str, upload_id: str) -> dict:
|
||||||
"""
|
"""
|
||||||
|
|||||||
Reference in New Issue
Block a user