fix: The captures are visible on the index by default.

pull/260/head
Raphaël Vinot 2021-09-08 20:43:56 +02:00
parent 5abc264159
commit 9c7929569e
1 changed files with 2 additions and 1 deletions

View File

@ -61,7 +61,8 @@ class AsyncCapture(AbstractManager):
perma_uuid=uuid,
cookies_pseudofile=to_capture.get('cookies', None),
depth=int(to_capture.get('depth', 1)),
listing=True if ('listing' in to_capture and to_capture['listing'] in [True, 'True', 1, '1']) else False,
# By default, the captures are on the index, unless the user mark them as un-listed
listing=False if ('listing' in to_capture and to_capture['listing'] in ['False', '0']) else True,
user_agent=to_capture.get('user_agent', None),
referer=to_capture.get('referer', ''),
proxy=to_capture.get('proxy', ''),