kopia lustrzana https://github.com/dgtlmoon/changedetection.io
Primitive support for extra headers
rodzic
eb2791da42
commit
f455f14efd
|
@ -47,6 +47,11 @@ class perform_site_check(Thread):
|
|||
'Accept-Language': 'en-GB,en-US;q=0.9,en;q=0.8,cs;q=0.7'
|
||||
}
|
||||
|
||||
extra_headers = self.datastore.get_val(self.uuid, 'headers')
|
||||
headers.update(extra_headers)
|
||||
|
||||
print (headers)
|
||||
|
||||
|
||||
print("Checking", self.url)
|
||||
import html2text
|
||||
|
|
|
@ -17,7 +17,8 @@ class ChangeDetectionStore:
|
|||
'last_checked': 0,
|
||||
'last_changed': 0,
|
||||
'title': None,
|
||||
'uuid': str(uuid.uuid4())
|
||||
'uuid': str(uuid.uuid4()),
|
||||
'headers' : {}
|
||||
}
|
||||
|
||||
try:
|
||||
|
|
Ładowanie…
Reference in New Issue