From bf38127abdaf5323391ae00f5134020ebb01c907 Mon Sep 17 00:00:00 2001 From: Pinapelz Date: Tue, 27 May 2025 15:51:00 -0700 Subject: wmmt: remove first image (profile pic) of future lab 6rr and 6rr+ posts --- bandai_namco/wmmt.py | 4 ++++ 1 file changed, 4 insertions(+) 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 -- cgit v1.2.3