aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPinapelz <yukais@pinapelz.com>2025-11-21 21:38:15 -0800
committerPinapelz <yukais@pinapelz.com>2025-11-21 21:38:15 -0800
commita7347217899fb7a3addcee58a9fbee4a0c07ff57 (patch)
tree138670e4843fa8df534cbd174681357072f8a227
parent0c1a5bac7e2afc0f127931e202d8c4811c70a328 (diff)
skip adding b64 images to db
-rw-r--r--database.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/database.py b/database.py
index d9af506..fc476b1 100644
--- a/database.py
+++ b/database.py
@@ -117,6 +117,8 @@ class Database:
),
)
for image_entry in news_entry["images"]:
+ if image_entry["image"].startswith("data:"):
+ continue
link_url = image_entry.get("link", None)
self._cursor.execute(
"INSERT OR REPLACE INTO news_images (news_id, image_url, link_url) VALUES (?, ?, ?)",
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage