diff --git a/tests/test_dicmusic_indexer.py b/tests/test_dicmusic_indexer.py index 6595d60d8..8fb644a4c 100644 --- a/tests/test_dicmusic_indexer.py +++ b/tests/test_dicmusic_indexer.py @@ -13,10 +13,15 @@ DICMUSIC_HTML = """ @@ -59,7 +64,10 @@ def _dicmusic_indexer() -> dict[str, Any]: {"name": "re_search", "args": [r"torrentid=(\d+)", 1]} ], }, - "title": {"selector": detail_selector}, + "title": { + "selector": "td.td_info", + "remove": "span, div.tags", + }, "details": {"selector": detail_selector, "attribute": "href"}, "download": { "selector": 'a[href*="torrents.php?action=download"]', @@ -110,7 +118,9 @@ def test_dicmusic_search_uses_complete_music_title_in_python_fallback() -> None: ).parse(DICMUSIC_HTML) assert len(results) == 1 - assert results[0]["title"] == "BTS - ARIRANG" + assert results[0]["title"] == ( + "BTS (방탄소년단 / 防弹少年团) - ARIRANG [2026] [专辑]" + ) assert results[0]["category"] == MediaType.MUSIC.value assert results[0]["page_url"].endswith("torrents.php?id=123&torrentid=456") assert results[0]["enclosure"].endswith("torrents.php?action=download&id=456") @@ -136,5 +146,7 @@ def test_dicmusic_search_uses_complete_music_title_in_rust_parser( ).parse(DICMUSIC_HTML) assert len(results) == 1 - assert results[0]["title"] == "BTS - ARIRANG" + assert results[0]["title"] == ( + "BTS (방탄소년단 / 防弹少年团) - ARIRANG [2026] [专辑]" + ) assert results[0]["category"] == MediaType.MUSIC.value
- + DL + FL + RP - BTS - ARIRANG + BTS (방탄소년단 / 防弹少年团) - + ARIRANG + [2026] [专辑] +
K-Pop
today 1.00 GiB