Skip to content

Commit

Permalink
Fix Dutch location parsing issues
Browse files Browse the repository at this point in the history
  • Loading branch information
larsenv committed Sep 8, 2023
1 parent 73b5dd9 commit 1dcd867
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Channels/News_Channel/newsdownload.py
Original file line number Diff line number Diff line change
Expand Up @@ -642,7 +642,7 @@ def parse_feed(self, key, value, i):

if key == "canada_":
self.source = "AP"
x

if downloaded_news:
self.newsdata[value + str(j)] = downloaded_news
except Exception as e:
Expand Down Expand Up @@ -1022,7 +1022,7 @@ def parse_anp(self):
try:
self.location = self.soup.find("meta", {"property": "og:description"})[
"content"
].split(" (ANP) - ")[0]
self.article = self.location + " (ANP) - " + self.article
].split(" (ANP")[0]
self.article = self.location + " (ANP" + self.article
except:
pass

0 comments on commit 1dcd867

Please sign in to comment.