From a81ee7d89a132a64466a945901522e9eec144528 Mon Sep 17 00:00:00 2001 From: tianyf Date: Thu, 9 May 2024 11:18:00 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=89=AF=E6=A0=87=E9=A2=98?= =?UTF-8?q?=E5=8C=85=E5=90=AB=E3=80=90=E3=80=91=E7=9A=84=E6=83=85=E5=86=B5?= =?UTF-8?q?=E4=B8=8B=E6=97=A0=E6=B3=95=E5=8C=B9=E9=85=8D=E6=A0=87=E9=A2=98?= =?UTF-8?q?=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 3 ++- app/helper/torrent.py | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) 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},'