Skip to content

Commit

Permalink
Strip image URL to avoid some errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Guts committed Mar 30, 2023
1 parent 9d117cd commit d186564
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 d186564

Please sign in to comment.