mirror of
https://github.com/internetarchive/warcprox.git
synced 2025-01-18 13:22:09 +01:00
add do_not_archive check to should_archive
This commit is contained in:
parent
a6fa04bcae
commit
46dd01de89
@ -81,8 +81,12 @@ class WarcWriterProcessor(warcprox.BaseStandardPostfetchProcessor):
|
||||
if recorded_url.warcprox_meta
|
||||
and 'warc-prefix' in recorded_url.warcprox_meta
|
||||
else self.options.prefix)
|
||||
do_not_archive = (recorded_url.do_not_archive
|
||||
if recorded_url.do_not_archive
|
||||
else False)
|
||||
# special warc name prefix '-' means "don't archive"
|
||||
return prefix != '-' and self._filter_accepts(recorded_url)
|
||||
return prefix != '-' and (not do_not_archive) and
|
||||
self._filter_accepts(recorded_url)
|
||||
|
||||
def _log(self, recorded_url, records):
|
||||
try:
|
||||
|
Loading…
x
Reference in New Issue
Block a user