Skip to content

Commit

Permalink
use to_traditional in Baozimh2Checker
Browse files Browse the repository at this point in the history
  • Loading branch information
nonjosh committed May 30, 2024
1 parent 56f009f commit 29d4dac
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions helpers/checkers/baozimh2.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from typing import List

from bs4.element import Tag
from chinese_converter import to_simplified
from chinese_converter import to_traditional

from helpers.chapter import Chapter
from helpers.checkers.base import AbstractChapterChecker
Expand Down Expand Up @@ -29,7 +29,7 @@ def get_latest_chapter_list(self) -> List[Chapter]:
chapter_title = chapter_tag.find(
"span", {"class": "chaptertitle"}
).text.strip()
chapter_title = to_simplified(chapter_title)
chapter_title = to_traditional(chapter_title)
chapter_url = chapter_tag["href"]
chapter_list.append(Chapter(title=chapter_title, url=chapter_url))

Expand Down

0 comments on commit 29d4dac

Please # to comment.