summaryrefslogtreecommitdiff
path: root/fetcher.fnl
diff options
context:
space:
mode:
authorunwox <me@unwox.com>2025-02-03 15:43:58 +0600
committerunwox <me@unwox.com>2025-02-03 15:43:58 +0600
commit778ab54f2e97455e07b2247ec9ea79e3a39500e7 (patch)
tree8ce6b98b0aaa28c9d61490177b18f6dbf832cd46 /fetcher.fnl
parenta44138f9110599d48a89cc307ebee1b9c9eae584 (diff)
add tea108 parser
Diffstat (limited to 'fetcher.fnl')
-rw-r--r--fetcher.fnl4
1 files changed, 2 insertions, 2 deletions
diff --git a/fetcher.fnl b/fetcher.fnl
index 7b46266..5670af9 100644
--- a/fetcher.fnl
+++ b/fetcher.fnl
@@ -44,7 +44,7 @@
(do
(os.execute "sleep 1")
(gather (+ page 1) (array.concat knil items)))))
- (= 404 status)
+ (and (<= 300 status) (< status 500))
knil
(retry #(gather page knil) 3 1)))
@@ -92,7 +92,7 @@
(do
(os.execute "sleep 1")
(gather (+ 1 page) (array.concat knil items)))))
- (= status 404)
+ (and (<= 300 status) (< status 500))
knil
(retry #(gather page knil) 3 1)))