Skip to content

Commit

Permalink
fix: added translate langs to parse_title as well
Browse files Browse the repository at this point in the history
  • Loading branch information
dreulavelle committed Aug 26, 2024
1 parent 5e2e991 commit 0324964
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions PTT/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@
add_defaults(_parser)


def parse_title(raw_title: str) -> dict:
def parse_title(raw_title: str, translate_langs: bool = False) -> dict:
"""
Parse the given input string using the initialized parser instance.
:param raw_title: The input raw torrent title to parse.
:return: A dictionary with the parsed results.
"""
return _parser.parse(raw_title)
return _parser.parse(raw_title, translate_langs)


__all__ = ["Parser", "add_defaults", "parse", "parse_title", "handlers", "transformers"]

0 comments on commit 0324964

Please sign in to comment.