fix(scan): update timeout

This commit is contained in:
arkohut 2024-07-10 16:24:37 +08:00
parent 4af36016e5
commit d1b83571e6

View File

@ -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}")