From 8b7547f22832a27c1df8d074b4d635ddc010d3a7 Mon Sep 17 00:00:00 2001 From: kshib Date: Thu, 13 Jun 2024 15:40:27 +0530 Subject: [PATCH] handle old urls --- lib/extractor/general/world/aljazeera.dart | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/extractor/general/world/aljazeera.dart b/lib/extractor/general/world/aljazeera.dart index 547a0b8..babdf71 100644 --- a/lib/extractor/general/world/aljazeera.dart +++ b/lib/extractor/general/world/aljazeera.dart @@ -98,6 +98,9 @@ class AlJazeera extends Publisher { if (category == "/") { category = "news"; } + if(!category.startsWith("/")) { + return {}; + } Set articles = {}; Response? response = await get(category, page); if (response?.statusCode == 200) {