From 28e21db17935decc656a901e0bbac2e68f31df92 Mon Sep 17 00:00:00 2001 From: zPlus Date: Wed, 25 Dec 2024 11:22:01 +0100 Subject: [PATCH] [XKCD] Skip #1608. This is not a comics, but a small video game. --- scripts/xkcd/xkcd.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/scripts/xkcd/xkcd.py b/scripts/xkcd/xkcd.py index b339f5c..06f5da0 100755 --- a/scripts/xkcd/xkcd.py +++ b/scripts/xkcd/xkcd.py @@ -18,6 +18,12 @@ START_NUMBER = int(os.environ['START_NUMBER']) END_NUMBER = int(os.environ['END_NUMBER']) for n in range(START_NUMBER, END_NUMBER + 1): + + # Skip https://xkcd.com/1608/ "Hoverboard" + # This is not an image/comics but a small video game + if n == 1608: + continue + req = requests.get(url = f"https://xkcd.com/{n}/info.0.json") if req.status_code != 200: