Skip to content

Commit

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

Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit b318e8e

Please sign in to comment.