■ ■ ■ ■ ■ ■
changedetectionio/fetch_site_status.py
| skipped 129 lines |
130 | 130 | | self.screenshot = fetcher.screenshot |
131 | 131 | | self.xpath_data = fetcher.xpath_data |
132 | 132 | | |
| 133 | + | # Do we even need to run at all? |
| 134 | + | update_obj['previous_md5_before_filters'] = hashlib.md5(fetcher.content.encode('utf-8')).hexdigest() |
| 135 | + | if update_obj['previous_md5_before_filters'] == watch.get('previous_md5_before_filters'): |
| 136 | + | raise content_fetcher.checksumFromPreviousCheckWasTheSame() |
| 137 | + | |
| 138 | + | |
133 | 139 | | # Fetching complete, now filters |
134 | 140 | | # @todo move to class / maybe inside of fetcher abstract base? |
135 | 141 | | |
| skipped 184 lines |