aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPinapelz <yukais@pinapelz.com>2025-10-22 11:45:58 -0700
committerPinapelz <yukais@pinapelz.com>2025-10-22 11:45:58 -0700
commit228da52ec1ead5e3a97608828dc0f2c5c77d3da0 (patch)
tree1636b7a5427d82088c371e52b0cf2efe61a865ed
parentf9490ea071fa920a77e87f094ad7bd13ead13cfa (diff)
eam: fix: check for empty estring in image_url
-rw-r--r--konami/eamuse_app.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/konami/eamuse_app.py b/konami/eamuse_app.py
index f3cc643..f8fae2b 100644
--- a/konami/eamuse_app.py
+++ b/konami/eamuse_app.py
@@ -67,7 +67,7 @@ def parse_news_api_route(raw_api_data: str, identifier: str, eam_news_site: str=
content = post_data["content"]
url = eam_news_site + "?post_id="+post_data["post_id"]
images = []
- if "image_url" in post_data:
+ if "image_url" in post_data and post_data["image_url"] != "":
images = [{
"image": post_data["image_url"],
"link": url
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage