fix: Incorrect matching for listing key in capture (always false)

pull/259/head
Raphaël Vinot 2021-09-08 10:53:31 +02:00
parent 902c8f81b6
commit 48b632aa1e
1 changed files with 1 additions and 1 deletions

View File

@ -61,7 +61,7 @@ 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'] is True) else False,
listing=True if ('listing' in to_capture and to_capture['listing'] in [True, 'True', 1, '1']) else False,
user_agent=to_capture.get('user_agent', None),
referer=to_capture.get('referer', ''),
proxy=to_capture.get('proxy', ''),