From e501154ad4fe28d55c868c639cd6da433d09f0c7 Mon Sep 17 00:00:00 2001 From: jxxghp Date: Thu, 11 Apr 2024 08:21:29 +0800 Subject: [PATCH] v1.8.0 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 搜索和订阅支持指定季,输入:xxxx 第x季 - 插件市场支持查看插件的更新日志(需要插件作者补充) - 优化了媒体信息识别 - 优化了动漫及拼音标题的资源搜索匹配 - 优化了UI性能 - 修复了手动搜索时默认过滤规则不生效的问题 - 新增下载文件实时整理API,可在 QB设置->下载完成时运行外部程序 处填入:curl "http://localhost:3000/api/v1/transfer/now?token=moviepilot",实现下载器监控模式下无需等待轮循,下载完成后立即整理入库(地址、端口和token按实际调整,curl也可更换为wget)。 注意:如搜索异常请清理浏览器缓存。 --- app/helper/torrent.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/helper/torrent.py b/app/helper/torrent.py index 3a3624bae..03487cecc 100644 --- a/app/helper/torrent.py +++ b/app/helper/torrent.py @@ -467,14 +467,14 @@ def match_torrent(mediainfo: MediaInfo, torrent_meta: MetaInfo, titles = [StringUtils.clear_upper(t) for t in re.split(r'[\s/【】.\[\]\-]+', torrent_meta.org_string) if t] # 在标题中判断是否存在标题、原语种标题、别名、译名 - if meta_names.intersection(titles) or media_names.intersection(titles): + if media_titles.intersection(titles) or media_names.intersection(titles): logger.info(f'{mediainfo.title} 通过标题匹配到资源:{torrent.site_name} - {torrent.title}') return True # 在副标题中判断是否存在标题、原语种标题、别名、译名 if torrent.description: subtitles = {StringUtils.clear_upper(t) for t in re.split(r'[\s/|]+', torrent.description) if t} - if meta_names.intersection(subtitles) or media_names.intersection(subtitles): + if media_titles.intersection(subtitles) or media_names.intersection(subtitles): logger.info(f'{mediainfo.title} 通过副标题匹配到资源:{torrent.site_name} - {torrent.title},' f'副标题:{torrent.description}') return True