From cf93ffe5ca02039b52a051fd580063489394b1a1 Mon Sep 17 00:00:00 2001 From: Larsen Vallecillo Date: Fri, 15 Sep 2023 17:44:02 -0500 Subject: [PATCH] Fix Canada news --- Channels/News_Channel/newsdownload.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/Channels/News_Channel/newsdownload.py b/Channels/News_Channel/newsdownload.py index eb62744..ee225fb 100644 --- a/Channels/News_Channel/newsdownload.py +++ b/Channels/News_Channel/newsdownload.py @@ -70,7 +70,7 @@ "ap_canada": { "name": "AP", "url": "https://afs-prod.appspot.com/api/v2/feed/tag?tags=%s", - "url2": "https://www.thestar.com/content/thestar/feed.RSSManagerServlet.articles.news.canada.rss", + "url2": "https://www.thestar.com/search/?f=rss&t=article&c=news/canada*&l=50&s=start_time&sd=desc", "lang": "en", "cat": { "science": "science", @@ -553,9 +553,6 @@ def parse_feed(self, key, value, i): entry = entry["contents"][0] except: continue - elif self.source == "AP" and key == "canada_": - if entry["author"] != "The Canadian Press": - continue current_time = int( (time.mktime(datetime.utcnow().timetuple()) - 946684800) / 60