Merge pull request #310 from djhmateer/waczscreenshot bug fix

counter_screenshots to counter_warc_files in wacz_extractor so don't …
This commit is contained in:
Miguel Sozinho Ramalho
2025-06-04 15:01:12 +01:00
committed by GitHub

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)