From 778ab54f2e97455e07b2247ec9ea79e3a39500e7 Mon Sep 17 00:00:00 2001 From: unwox Date: Mon, 3 Feb 2025 15:43:58 +0600 Subject: add tea108 parser --- fetcher.fnl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'fetcher.fnl') 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))) -- cgit v1.2.3