mirror of
https://github.com/internetarchive/brozzler.git
synced 2025-08-08 06:22:23 -04:00
behavior_timeout_custom (not timeout_from_behavior)
This commit is contained in:
parent
70af801da1
commit
92c137f402
2 changed files with 7 additions and 7 deletions
|
@ -448,11 +448,11 @@ class Browser:
|
|||
if on_screenshot:
|
||||
jpeg_bytes = self.screenshot()
|
||||
on_screenshot(jpeg_bytes)
|
||||
behavior_script, timeout_from_behavior = brozzler.behavior_script(
|
||||
behavior_script, behavior_timeout_custom = brozzler.behavior_script(
|
||||
page_url, behavior_parameters,
|
||||
behaviors_dir=behaviors_dir)
|
||||
if timeout_from_behavior > behavior_timeout:
|
||||
behavior_timeout = timeout_from_behavior
|
||||
if behavior_timeout_custom > behavior_timeout:
|
||||
behavior_timeout = behavior_timeout_custom
|
||||
self.run_behavior(behavior_script, timeout=behavior_timeout)
|
||||
if skip_extract_outlinks:
|
||||
outlinks = []
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue