mirror of
https://github.com/tcsenpai/pensieve.git
synced 2025-06-08 12:15:26 +00:00
feat(scan): change timeout to 60s
This commit is contained in:
parent
c997244577
commit
c0476cbfa2
@ -219,7 +219,7 @@ def scan(
|
|||||||
"trigger_webhooks_flag": "true",
|
"trigger_webhooks_flag": "true",
|
||||||
**({"plugins": plugins} if plugins else {}),
|
**({"plugins": plugins} if plugins else {}),
|
||||||
},
|
},
|
||||||
timeout=30,
|
timeout=60,
|
||||||
)
|
)
|
||||||
if 200 <= update_response.status_code < 300:
|
if 200 <= update_response.status_code < 300:
|
||||||
tqdm.write(f"Updated file in library: {file_path}")
|
tqdm.write(f"Updated file in library: {file_path}")
|
||||||
@ -239,7 +239,7 @@ def scan(
|
|||||||
f"{BASE_URL}/libraries/{library_id}/entities",
|
f"{BASE_URL}/libraries/{library_id}/entities",
|
||||||
json=new_entity,
|
json=new_entity,
|
||||||
params={"plugins": plugins} if plugins else {},
|
params={"plugins": plugins} if plugins else {},
|
||||||
timeout=30,
|
timeout=60,
|
||||||
)
|
)
|
||||||
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