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 deletion
—
download
Diffstat
Diff options
+1/-1
M scripts/xkcd/xkcd.py
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
|
|
|