From 2855ec759d68c12f96c84e8a8b4ed797c8628c28 Mon Sep 17 00:00:00 2001 From: Mike Lang Date: Sat, 14 Sep 2024 06:51:33 +1000 Subject: [PATCH] download_media: Add pdf to default allowed content types We want to capture linked PDFs in addition to videos and images --- common/common/media.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/common/media.py b/common/common/media.py index 9d13a56..86093dc 100644 --- a/common/common/media.py +++ b/common/common/media.py @@ -64,7 +64,7 @@ def download_media( output_dir, max_size=128*2**20, # 128MiB timeout=60, - content_types=("image", "video"), + content_types=("image", "video", "application/pdf"), max_redirects=5, retries=3, retry_interval=1,