From 1dcd8674d5e0fb25dbd5407f97c6530549910085 Mon Sep 17 00:00:00 2001 From: Larsenv Date: Fri, 8 Sep 2023 12:53:05 -0500 Subject: [PATCH] Fix Dutch location parsing issues --- Channels/News_Channel/newsdownload.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Channels/News_Channel/newsdownload.py b/Channels/News_Channel/newsdownload.py index 832933e..528214c 100644 --- a/Channels/News_Channel/newsdownload.py +++ b/Channels/News_Channel/newsdownload.py @@ -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: @@ -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