home » zplus/dokk.git
Author zPlus <zplus@peers.community> 2024-12-25 10:22:01
Committer zPlus <zplus@peers.community> 2024-12-25 10:22:01
Commit 28e21db (patch)
Tree 7178ccc
Parent(s)

[XKCD] Skip #1608. This is not a comics, but a small video game.


commits diff: d48cc40..28e21db
1 file changed, 6 insertions, 0 deletionsdownload


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

Diff options
View
Side
Whitespace
Context lines
Inter-hunk lines
+6/-0 M   scripts/xkcd/xkcd.py
index b339f5c..06f5da0
old size: 2K - new size: 3K
@@ -18,6 +18,12 @@ START_NUMBER = int(os.environ['START_NUMBER'])
18 18 END_NUMBER = int(os.environ['END_NUMBER'])
19 19
20 20 for n in range(START_NUMBER, END_NUMBER + 1):
21 +
22 + # Skip https://xkcd.com/1608/ "Hoverboard"
23 + # This is not an image/comics but a small video game
24 + if n == 1608:
25 + continue
26 +
21 27 req = requests.get(url = f"https://xkcd.com/{n}/info.0.json")
22 28
23 29 if req.status_code != 200: