From d48cc405662fc82a3f4bbbfbb954c8276176ea33 Mon Sep 17 00:00:00 2001 From: zPlus Date: Wed, 25 Dec 2024 10:54:35 +0100 Subject: [PATCH] [XKCD] Check .gif image extension. Add .gif to the list of allowed extensions. --- scripts/xkcd/xkcd.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/xkcd/xkcd.py b/scripts/xkcd/xkcd.py index d8e41cb..b339f5c 100755 --- a/scripts/xkcd/xkcd.py +++ b/scripts/xkcd/xkcd.py @@ -29,7 +29,7 @@ for n in range(START_NUMBER, END_NUMBER + 1): assert n == data['num'] image_extension = Path(data['img']).suffix.lower() - assert image_extension in [ '.jpg', '.jpeg', '.png' ] + assert image_extension in [ '.jpg', '.jpeg', '.png', '.gif' ] node_id = f"xkcd_comic_{n}"