■ ■ ■ ■ ■ ■
changedetectionio/fetch_processor/image.py
| skipped 79 lines |
80 | 80 | | |
81 | 81 | | update_obj["last_check_status"] = fetcher.get_last_status_code() |
82 | 82 | | |
| 83 | + | self.contents = fetcher.raw_content |
| 84 | + | |
83 | 85 | | image = Image.open(io.BytesIO(fetcher.raw_content)) |
84 | 86 | | |
85 | 87 | | # @todo different choice? |
| skipped 10 lines |
96 | 98 | | # On the first run of a site, watch['previous_md5'] will be None, set it the current one. |
97 | 99 | | if not watch.get('previous_md5'): |
98 | 100 | | watch['previous_md5'] = fetched_hash |
99 | | - | |
100 | | - | #self.contents = fetcher.screenshot |
101 | 101 | | |
102 | 102 | | return changed_detected, update_obj |
103 | 103 | | |