diff --git a/.gitignore b/.gitignore index 68461dc2..f7305d1a 100644 --- a/.gitignore +++ b/.gitignore @@ -15,4 +15,5 @@ config/user.db config/sites/** *.pyc *.log -.vscode \ No newline at end of file +.vscode +venv \ No newline at end of file diff --git a/app/helper/torrent.py b/app/helper/torrent.py index c7d18a7c..8f48b5a2 100644 --- a/app/helper/torrent.py +++ b/app/helper/torrent.py @@ -497,7 +497,7 @@ class TorrentHelper(metaclass=Singleton): return True # 在副标题中判断是否存在标题、原语种标题、别名、译名 if torrent.description: - subtitles = {StringUtils.clear_upper(t) for t in re.split(r'[\s/|]+', + subtitles = {StringUtils.clear_upper(t) for t in re.split(r'[\s/【】|]+', torrent.description) if t} if media_titles.intersection(subtitles) or media_names.intersection(subtitles): logger.info(f'{mediainfo.title} 通过副标题匹配到资源:{torrent.site_name} - {torrent.title},'