home » zplus/dokk.git
Author zPlus <zplus@peers.community> 2024-12-25 09:54:35
Committer zPlus <zplus@peers.community> 2024-12-25 09:54:35
Commit d48cc40 (patch)
Tree 80d4b9c
Parent(s)

[XKCD] Check .gif image extension. Add .gif to the list of allowed extensions.


commits diff: 4926904..d48cc40
1 file changed, 1 insertion, 1 deletiondownload


Diffstat
-rwxr-xr-x scripts/xkcd/xkcd.py 2

Diff options
View
Side
Whitespace
Context lines
Inter-hunk lines
+1/-1 M   scripts/xkcd/xkcd.py
index d8e41cb..b339f5c
old size: 2K - new size: 2K
@@ -29,7 +29,7 @@ for n in range(START_NUMBER, END_NUMBER + 1):
29 29 assert n == data['num']
30 30
31 31 image_extension = Path(data['img']).suffix.lower()
32 - assert image_extension in [ '.jpg', '.jpeg', '.png' ]
32 + assert image_extension in [ '.jpg', '.jpeg', '.png', '.gif' ]
33 33
34 34 node_id = f"xkcd_comic_{n}"
35 35