From 9f8c7fb86c18422b7b4f58e8dd52027028189fcf Mon Sep 17 00:00:00 2001 From: dyphire Date: Wed, 28 Oct 2026 00:01:06 +0800 Subject: [PATCH 1/2] fix(zh.bilimanga): restore tags parsing after detail page markup change --- sources/zh.bilimanga/res/source.json | 2 +- sources/zh.bilimanga/src/html/mod.rs | 10 +++++++--- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/sources/zh.bilimanga/res/source.json b/sources/zh.bilimanga/res/source.json index b1d2f0757..57717dbce 100644 --- a/sources/zh.bilimanga/res/source.json +++ b/sources/zh.bilimanga/res/source.json @@ -2,7 +2,7 @@ "info": { "id": "zh.bilimanga", "name": "嗶哩漫畫", - "version": 4, + "version": 5, "url": "https://www.bilimanga.net", "contentRating": 1, "languages": ["zh"], diff --git a/sources/zh.bilimanga/src/html/mod.rs b/sources/zh.bilimanga/src/html/mod.rs index cf29262cd..533401c62 100644 --- a/sources/zh.bilimanga/src/html/mod.rs +++ b/sources/zh.bilimanga/src/html/mod.rs @@ -125,10 +125,14 @@ impl MangaPage for Document { .text() .unwrap_or_default(), ); + // The site dropped the intermediate `span.tag-small` wrapper: the anchors + // are now direct children of `.tag-small-group` and carry `.tag-small` + // themselves. Use a descendant anchor selector so both the old and the + // new markup resolve to the individual tag links (never their container). let tags = self - .try_select(".tag-small-group>.tag-small>a")? - .filter_map(|a| a.text()) - .collect::>(); + .select(".tag-small-group a") + .map(|els| els.filter_map(|a| a.text()).collect::>()) + .unwrap_or_default(); manga.tags = Some(tags); manga.status = { // Status lives in `.book-meta em` (e.g. "連載中"/"已完結"), joined by From 23a08409490a4a86cc5ac4921de694a9a9e64ffb Mon Sep 17 00:00:00 2001 From: kantan <31490942+kkantan@users.noreply.github.com> Date: Wed, 28 Oct 2026 05:28:17 +0900 Subject: [PATCH 2/2] chore: remove comment --- sources/zh.bilimanga/src/html/mod.rs | 4 ---- 1 file changed, 4 deletions(-) diff --git a/sources/zh.bilimanga/src/html/mod.rs b/sources/zh.bilimanga/src/html/mod.rs index 533401c62..292c7b64b 100644 --- a/sources/zh.bilimanga/src/html/mod.rs +++ b/sources/zh.bilimanga/src/html/mod.rs @@ -125,10 +125,6 @@ impl MangaPage for Document { .text() .unwrap_or_default(), ); - // The site dropped the intermediate `span.tag-small` wrapper: the anchors - // are now direct children of `.tag-small-group` and carry `.tag-small` - // themselves. Use a descendant anchor selector so both the old and the - // new markup resolve to the individual tag links (never their container). let tags = self .select(".tag-small-group a") .map(|els| els.filter_map(|a| a.text()).collect::>())