mirror of
https://github.com/internetarchive/warcprox.git
synced 2025-01-18 13:22:09 +01:00
add do_not_archive to class
This commit is contained in:
parent
1e432fb54e
commit
e37693df5a
@ -330,7 +330,7 @@ class RecordedUrl:
|
|||||||
warcprox_meta=None, content_type=None, custom_type=None,
|
warcprox_meta=None, content_type=None, custom_type=None,
|
||||||
status=None, size=None, client_ip=None, method=None,
|
status=None, size=None, client_ip=None, method=None,
|
||||||
timestamp=None, host=None, duration=None, referer=None,
|
timestamp=None, host=None, duration=None, referer=None,
|
||||||
payload_digest=None, warc_records=None):
|
payload_digest=None, warc_records=None, do_not_archive=False):
|
||||||
# XXX should test what happens with non-ascii url (when does
|
# XXX should test what happens with non-ascii url (when does
|
||||||
# url-encoding happen?)
|
# url-encoding happen?)
|
||||||
if type(url) is not bytes:
|
if type(url) is not bytes:
|
||||||
@ -370,6 +370,7 @@ class RecordedUrl:
|
|||||||
self.referer = referer
|
self.referer = referer
|
||||||
self.payload_digest = payload_digest
|
self.payload_digest = payload_digest
|
||||||
self.warc_records = warc_records
|
self.warc_records = warc_records
|
||||||
|
self.do_not_archive = do_not_archive
|
||||||
|
|
||||||
# inherit from object so that multiple inheritance from this class works
|
# inherit from object so that multiple inheritance from this class works
|
||||||
# properly in python 2
|
# properly in python 2
|
||||||
|
Loading…
x
Reference in New Issue
Block a user