From b318e8e01d5aec7ad483cc6be7ca064fa462668b Mon Sep 17 00:00:00 2001 From: Larsen Vallecillo Date: Fri, 15 Sep 2023 17:39:55 -0500 Subject: [PATCH] Add location parsing fallback triggers --- Channels/News_Channel/newsdownload.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Channels/News_Channel/newsdownload.py b/Channels/News_Channel/newsdownload.py index 528214c..eb62744 100644 --- a/Channels/News_Channel/newsdownload.py +++ b/Channels/News_Channel/newsdownload.py @@ -882,8 +882,8 @@ def parse_reuters(self): if self.location == "": self.location = self.article except: - pass - + self.location = self.article + # move the credits for the article to the end of the article if self.article[:3] == "By ": @@ -951,7 +951,7 @@ def parse_afp_german(self): self.location = self.location.split(" (AFP)")[0] self.article = self.location + " (AFP) - " + self.article except: - pass + self.location = self.article self.resize = True @@ -986,7 +986,7 @@ def parse_afp_spanish(self): try: self.location = self.article.split(" (AFP)")[0] except: - pass + self.location = self.article try: self.article = self.article.replace(self.caption + "\n\n", "") except: