diff options
| author | Pinapelz <yukais@pinapelz.com> | 2025-05-19 16:10:47 -0700 |
|---|---|---|
| committer | Pinapelz <yukais@pinapelz.com> | 2025-05-19 16:10:47 -0700 |
| commit | ba99daa6f1d8194b875dd5ae4222a6e5311b4d68 (patch) | |
| tree | 0c7a9273ebadc2a922d4006f89a9c8a0e4cc10f6 /bandai_namco | |
| parent | a8b4abbacc3bebd59d51520bbf17527b92afe957 (diff) | |
wmmt: adjust minimum content length
Diffstat (limited to 'bandai_namco')
| -rw-r--r-- | bandai_namco/wmmt.py | 6 |
1 files 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 = [] |
