aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPinapelz <yukais@pinapelz.com>2025-05-27 15:51:00 -0700
committerPinapelz <yukais@pinapelz.com>2025-05-27 15:51:00 -0700
commitbf38127abdaf5323391ae00f5134020ebb01c907 (patch)
treeb56cbd458adccd61d142d7fec0cb060c5cd5f0b6
parent62646d74f096498410aaf679edc4060b2681a5c9 (diff)
wmmt: remove first image (profile pic) of future lab 6rr and 6rr+ posts
-rw-r--r--bandai_namco/wmmt.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/bandai_namco/wmmt.py b/bandai_namco/wmmt.py
index 1277514..fc0e4bf 100644
--- a/bandai_namco/wmmt.py
+++ b/bandai_namco/wmmt.py
@@ -193,6 +193,8 @@ def make_wmmt_news_extractor(identifier: str, version: constants.WANGAN_MAXI_VER
"image": img_url,
"link": urljoin(BASE_URL, parent.get("href")) if parent and parent.get("href") else None
})
+ if data["type"] == "FUTURE LAB":
+ images = images[1:]
data["type"] = "["+region_text+"]" + " " + data["type"]
data["identifier"] = identifier
data["timestamp"] = timestamp
@@ -227,6 +229,8 @@ def make_wmmt_news_extractor(identifier: str, version: constants.WANGAN_MAXI_VER
"image": img_url,
"link": urljoin(BASE_URL, parent.get("href")) if parent and parent.get("href") else None
})
+ if data["type"] == "FUTURE LAB":
+ images = images[1:]
data["type"] = "["+region_text+"]" + " " + data["type"]
data["identifier"] = identifier
data["timestamp"] = timestamp
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage