🤬
  • ■ ■ ■ ■ ■ ■
    changedetectionio/model/Watch.py
    skipped 13 lines
    14 14   __newest_history_key = None
    15 15   __history_n=0
    16 16   __base_config = {
    17  - 'url': None,
    18  - 'tag': None,
    19  - 'last_checked': 0,
    20  - 'paused': False,
    21  - 'last_viewed': 0, # history key value of the last viewed via the [diff] link
     17 + # Custom notification content
     18 + # Re #110, so then if this is set to None, we know to use the default value instead
     19 + # Requires setting to None on submit if it's the same as the default
     20 + # Should be all None by default, so we use the system default in this case.
     21 + #'history': {}, # Dict of timestamp and output stripped filename
    22 22   #'newest_history_key': 0,
    23  - 'title': None,
    24  - 'previous_md5': False,
    25  - 'uuid': str(uuid_builder.uuid4()),
     23 + 'body': None,
     24 + 'check_unique_lines': False, # On change-detected, compare against all history if its something new
     25 + 'consecutive_filter_failures': 0, # Every time the CSS/xPath filter cannot be located, reset when all is fine.
     26 + 'css_filter': '',
     27 + 'extract_text': [], # Extract text by regex after filters
     28 + 'extract_title_as_title': False,
     29 + 'fetch_backend': None,
     30 + 'filter_failure_notification_send': strtobool(os.getenv('FILTER_FAILURE_NOTIFICATION_SEND_DEFAULT', 'True')),
    26 31   'headers': {}, # Extra headers to send
    27  - 'body': None,
    28  - 'method': 'GET',
    29  - #'history': {}, # Dict of timestamp and output stripped filename
    30 32   'ignore_text': [], # List of text to ignore when calculating the comparison checksum
    31  - # Custom notification content
    32  - 'notification_urls': [], # List of URLs to add to the notification Queue (Usually AppRise)
    33  - 'notification_title': None,
     33 + 'last_checked': 0,
     34 + 'last_error': False,
     35 + 'last_viewed': 0, # history key value of the last viewed via the [diff] link
     36 + 'method': 'GET',
    34 37   'notification_body': None,
    35 38   'notification_format': default_notification_format_for_watch,
    36 39   'notification_muted': False,
    37  - 'css_filter': '',
    38  - 'last_error': False,
    39  - 'extract_text': [], # Extract text by regex after filters
     40 + 'notification_title': None,
     41 + 'notification_urls': [], # List of URLs to add to the notification Queue (Usually AppRise)
     42 + 'paused': False,
     43 + 'previous_md5': False,
     44 + 'proxy': None, # Preferred proxy connection
    40 45   'subtractive_selectors': [],
    41  - 'trigger_text': [], # List of text or regex to wait for until a change is detected
     46 + 'tag': None,
    42 47   'text_should_not_be_present': [], # Text that should not present
    43  - 'fetch_backend': None,
    44  - 'filter_failure_notification_send': strtobool(os.getenv('FILTER_FAILURE_NOTIFICATION_SEND_DEFAULT', 'True')),
    45  - 'consecutive_filter_failures': 0, # Every time the CSS/xPath filter cannot be located, reset when all is fine.
    46  - 'extract_title_as_title': False,
    47  - 'check_unique_lines': False, # On change-detected, compare against all history if its something new
    48  - 'proxy': None, # Preferred proxy connection
    49  - # Re #110, so then if this is set to None, we know to use the default value instead
    50  - # Requires setting to None on submit if it's the same as the default
    51  - # Should be all None by default, so we use the system default in this case.
    52 48   'time_between_check': {'weeks': None, 'days': None, 'hours': None, 'minutes': None, 'seconds': None},
     49 + 'title': None,
     50 + 'trigger_text': [], # List of text or regex to wait for until a change is detected
     51 + 'url': None,
     52 + 'uuid': str(uuid_builder.uuid4()),
    53 53   'webdriver_delay': None,
    54 54   'webdriver_js_execute_code': None, # Run before change-detection
    55 55   }
    skipped 197 lines
Please wait...
Page is in error, reload to recover