Skip to content

Commit

Permalink
Fix Canada news
Browse files Browse the repository at this point in the history
  • Loading branch information
larsenv authored Sep 15, 2023
1 parent b318e8e commit cf93ffe
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions Channels/News_Channel/newsdownload.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit cf93ffe

Please sign in to comment.