mirror of
https://github.com/tcsenpai/pensieve.git
synced 2025-06-10 13:07:15 +00:00
fix(scan): update timeout
This commit is contained in:
parent
4af36016e5
commit
d1b83571e6
@ -207,6 +207,7 @@ def scan(library_id: int, force: bool = False):
|
|||||||
post_response = httpx.post(
|
post_response = httpx.post(
|
||||||
f"{BASE_URL}/libraries/{library_id}/entities",
|
f"{BASE_URL}/libraries/{library_id}/entities",
|
||||||
json=new_entity,
|
json=new_entity,
|
||||||
|
timeout=30
|
||||||
)
|
)
|
||||||
if 200 <= post_response.status_code < 300:
|
if 200 <= post_response.status_code < 300:
|
||||||
tqdm.write(f"Added file to library: {file_path}")
|
tqdm.write(f"Added file to library: {file_path}")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user