Skip to content

Commit

Permalink
Improve: strip image URL to avoid common errors (#180)
Browse files Browse the repository at this point in the history
  • Loading branch information
Guts authored Mar 30, 2023
2 parents 9d117cd + d186564 commit 1e340e8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mkdocs_rss_plugin/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -420,9 +420,9 @@ def get_image(self, in_page: Page, base_url: str) -> tuple:
:rtype: tuple
"""
if in_page.meta.get("image"):
img_url = in_page.meta.get("image")
img_url = in_page.meta.get("image").strip()
elif in_page.meta.get("illustration"):
img_url = in_page.meta.get("illustration")
img_url = in_page.meta.get("illustration").strip()
else:
return None

Expand Down

0 comments on commit 1e340e8

Please sign in to comment.