Fix warc_filename default value

Remove redundant `.warc`
This commit is contained in:
Vangelis Banos 2018-01-09 07:02:39 +00:00
parent ae23011d84
commit ec86f2b3df

View File

@ -44,7 +44,7 @@ class WarcWriter:
self.gzip = options.gzip or False
self.warc_filename = options.warc_filename or \
'{prefix}-{timestamp17}-{randomtoken}-{serialno}.warc'
'{prefix}-{timestamp17}-{randomtoken}-{serialno}'
digest_algorithm = options.digest_algorithm or 'sha1'
base32 = options.base32
self.record_builder = warcprox.warc.WarcRecordBuilder(