From ba99daa6f1d8194b875dd5ae4222a6e5311b4d68 Mon Sep 17 00:00:00 2001 From: Pinapelz Date: Mon, 19 May 2025 16:10:47 -0700 Subject: wmmt: adjust minimum content length --- bandai_namco/wmmt.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bandai_namco/wmmt.py b/bandai_namco/wmmt.py index 9a548d0..c70440e 100644 --- a/bandai_namco/wmmt.py +++ b/bandai_namco/wmmt.py @@ -143,7 +143,7 @@ def make_wmmt_news_extractor(identifier: str, version: constants.WANGAN_MAXI_VER paragraphs = container.find_all("p") if paragraphs: content = paragraphs[0].get_text(" ", strip=True) - if content and len(content.split()) < 10 and len(paragraphs) > 1: + if content and len(content.split()) < 50 and len(paragraphs) > 1: next_p_content = paragraphs[1].get_text(" ", strip=True) content += " " + next_p_content images = [] @@ -177,7 +177,7 @@ def make_wmmt_news_extractor(identifier: str, version: constants.WANGAN_MAXI_VER paragraphs = container.find_all("p") if paragraphs: content = paragraphs[0].get_text(" ", strip=True) - if content and len(content.split()) < 10 and len(paragraphs) > 1: + if content and len(content.split()) < 50 and len(paragraphs) > 1: next_p_content = paragraphs[1].get_text(" ", strip=True) content += " " + next_p_content images = [] @@ -211,7 +211,7 @@ def make_wmmt_news_extractor(identifier: str, version: constants.WANGAN_MAXI_VER paragraphs = container.find_all("p") if paragraphs: content = paragraphs[0].get_text(" ", strip=True) - if content and len(content.split()) < 10 and len(paragraphs) > 1: + if content and len(content.split()) < 50 and len(paragraphs) > 1: next_p_content = paragraphs[1].get_text(" ", strip=True) content += " " + next_p_content images = [] -- cgit v1.2.3