Skip to content

Commit

Permalink
handle old urls
Browse files Browse the repository at this point in the history
  • Loading branch information
ksh-b committed Jun 13, 2024
1 parent 58b5517 commit 8b7547f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/extractor/general/world/aljazeera.dart
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,9 @@ class AlJazeera extends Publisher {
if (category == "/") {
category = "news";
}
if(!category.startsWith("/")) {
return {};
}
Set<NewsArticle> articles = {};
Response? response = await get(category, page);
if (response?.statusCode == 200) {
Expand Down

0 comments on commit 8b7547f

Please sign in to comment.