- 新增启停

- Close #250
- 修复字幕重命名产生的bug
This commit is contained in:
EstrellaXD
2023-05-10 22:57:05 +08:00
parent b9968c796d
commit 88d64f3e1a
5 changed files with 24 additions and 7 deletions

View File

@@ -17,8 +17,12 @@ class TitleParser:
torrent_path: str,
torrent_name: str | None = None,
season: int | None = None,
file_type: str = "media",
):
return torrent_parser(torrent_path, torrent_name, season)
try:
return torrent_parser(torrent_path, torrent_name, season, file_type)
except Exception as e:
logger.warning(f"Cannot parse {torrent_path} with error {e}")
@staticmethod
def tmdb_parser(title: str, season: int, language: str):