home » zplus/dokk.git
Author zPlus <zplus@peers.community> 2024-12-25 10:30:09
Committer zPlus <zplus@peers.community> 2024-12-25 10:30:09
Commit eef7389 (patch)
Tree d8accbb
Parent(s)

[XKCD] Skip #1663.


commits diff: 28e21db..eef7389
1 file changed, 5 insertions, 0 deletionsdownload


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

Diff options
View
Side
Whitespace
Context lines
Inter-hunk lines
+5/-0 M   scripts/xkcd/xkcd.py
index 06f5da0..c37e4e6
old size: 3K - new size: 3K
@@ -24,6 +24,11 @@ for n in range(START_NUMBER, END_NUMBER + 1):
24 24 if n == 1608:
25 25 continue
26 26
27 + # Also skip 1663. This is also a comics using JavaScript.
28 + # TODO how should we add these comics with JavaScript?
29 + if n == 1663:
30 + continue
31 +
27 32 req = requests.get(url = f"https://xkcd.com/{n}/info.0.json")
28 33
29 34 if req.status_code != 200: