counter_screenshots to counter_warc_files in wacz_extractor so don't get error about add mulitple items with same id.

This commit is contained in:
Dave Mateer
2025-06-03 12:30:18 +01:00
parent 6735fa890b
commit c772082f0e

View File

@@ -232,7 +232,9 @@ class WaczExtractorEnricher(Enricher, Extractor):
# create local file and add media
ext = mimetypes.guess_extension(content_type)
warc_fn = f"warc-file-{counter_screenshots}{ext}"
warc_fn = f"warc-file-{counter_warc_files}{ext}"
fn = os.path.join(tmp_dir, warc_fn)
record_url_best_qual = UrlUtil.twitter_best_quality_url(record_url)