maxsubtitle-openapi-server icon indicating copy to clipboard operation
maxsubtitle-openapi-server copied to clipboard

提升搜索结果泛化性能

Open forrestsocool opened this issue 2 years ago • 5 comments

首先感谢作者实现这么一个方便搜索字幕的jellyfin插件。

使用过程中发现有些字幕搜索不到,但是服务端的网站上其实还是有很多资源的。 举例来说, PT下载的资源命名一般都是类似 Love.Death.&.Robots.S03E06.2022.1080p.NF.WEB-DL.x264.DDP5.1-ADWeb.mkv 在Jellyfin中调用插件搜索时,应该就是以原时文件名作为关键词进行搜索,结果为空, 对应网站的结果:https://www.a4k.net/search?term=Love.Death.%26.Robots.S03E06.2022.1080p.NF.WEB-DL.x264.DDP5.1-ADWeb.mkv 在网站上进行分词处理后 可以正确搜到结果: https://www.a4k.net/search?term=Love+Death+Robots

那么说是不是可以改进一下网站输入的分词:尽可能提供更多的结果

forrestsocool avatar May 24 '22 13:05 forrestsocool

@forrestsocool 你需要先采用搜刮插件解决资源基本信息之后再使用字幕插件,你使用了中文搜刮插件只要搜刮的资源名有中文应该问题不大的。

caryyu avatar May 24 '22 14:05 caryyu

image 搜刮应该是没问题的,到了修改字幕这一步,好像jellyfin只能调用文件名? image

forrestsocool avatar May 25 '22 10:05 forrestsocool

关键字应该会取搜刮后的名字,可以看这里:https://github.com/caryyu/jellyfin-plugin-maxsubtitle/blob/10.8.x-main/Jellyfin.Plugin.MaxSubtitle/MastSubtitleProvider.cs#L46-L51

caryyu avatar May 26 '22 02:05 caryyu

[2022-05-26 20:18:24.314 +08:00] [INF] [107] Jellyfin.Plugin.MaxSubtitle.MastSubtitleProvider: [Max Subtitle] Search of [name]: "三个机器人" [2022-05-26 20:18:24.400 +08:00] [INF] [58] Jellyfin.Plugin.MaxSubtitle.MastSubtitleProvider: [Max Subtitle] Search Found Nothing...

@caryyu 看了下日志,确实会搜刮削后的名字,对于剧集来说,方便加上剧的名字吗?比如这个情况命中单集的名字就搜不到

forrestsocool avatar May 26 '22 12:05 forrestsocool

@forrestsocool 剧集的匹配有点复杂,后面可以考虑对关键字进行智能处理后提取剧集特征,目前不支持;先把搜到的结果进行手动处理吧。

caryyu avatar May 26 '22 14:05 caryyu