Skip to content

Commit

Permalink
fix buggy footer trimming
Browse files Browse the repository at this point in the history
  • Loading branch information
facundoolano committed Jan 5, 2024
1 parent 826d2d1 commit 105c002
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion feedi/parsers/rss.py
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ def parse_content_short(self, entry):
# removing it by skipping the last line when it includes a link to the article
footer = summary.split('\n')[-1]
if content_url.split('?')[0] in footer:
summary = summary.strip(footer).strip()
summary = summary.replace(footer, '').strip()

summary = html.unescape(summary)
else:
Expand Down

0 comments on commit 105c002

Please sign in to comment.