91270 / MeiamSubtitles

Emby Server / Jellyfin Server 端字幕插件 ,使用 迅雷影音、 射手网 接口精准匹配视频字幕
1.57k stars 142 forks source link

射手源查询问题 #59

Closed s0urcelab closed 2 years ago

s0urcelab commented 2 years ago

MeiamSub.Shooter_1.0.8.0 射手源无法查询到字幕

使用射手源官方API文档提供的测试AVI文件进行测试:

Log:

[2022-07-28 19:32:34.169 +00:00] [INF] [3] Jellyfin.MeiamSub.Shooter.ShooterProvider: MeiamSub.Shooter Search | SubtitleSearchRequest -> {"Language":"chi","TwoLetterISOLanguageName":"zh","ContentType":1,"MediaPath":"/media/Movies/testidx.avi","SeriesName":null,"Name":"testidx","IndexNumber":null,"IndexNumberEnd":null,"ParentIndexNumber":null,"ProductionYear":null,"RuntimeTicks":645227920,"IsPerfectMatch":false,"ProviderIds":{},"SearchAllProviders":true,"DisabledSubtitleFetchers":[],"SubtitleFetcherOrder":[],"IsAutomated":false}
[2022-07-28 19:32:34.170 +00:00] [INF] [3] Jellyfin.MeiamSub.Shooter.ShooterProvider: MeiamSub.Shooter Search | Request -> {"Version":"1.1","VersionPolicy":0,"Content":{"Headers":[{"Key":"Content-Type","Value":["application/json; charset=utf-8"]}]},"Method":{"Method":"POST"},"RequestUri":"http://www.shooter.cn/api/subapi.php","Headers":[{"Key":"User-Agent","Value":["MeiamSub.Shooter"]},{"Key":"Accept","Value":["*/*"]}],"Properties":{},"Options":{}}
[2022-07-28 19:32:34.615 +00:00] [INF] [50] Jellyfin.MeiamSub.Shooter.ShooterProvider: MeiamSub.Shooter Search | Response -> {"Version":"1.1","Content":{"Headers":[{"Key":"Content-Type","Value":["application/octet-stream"]}]},"StatusCode":200,"ReasonPhrase":"OK","Headers":[{"Key":"Date","Value":["Thu, 28 Jul 2022 19:32:34 GMT"]},{"Key":"Transfer-Encoding","Value":["chunked"]},{"Key":"Connection","Value":["keep-alive"]},{"Key":"X-Cache-Status","Value":["MISS"]}],"TrailingHeaders":[],"RequestMessage":{"Version":"1.1","VersionPolicy":0,"Content":{"Headers":[{"Key":"Content-Type","Value":["application/json; charset=utf-8"]},{"Key":"Content-Length","Value":["226"]}]},"Method":{"Method":"POST"},"RequestUri":"http://www.shooter.cn/api/subapi.php","Headers":[{"Key":"User-Agent","Value":["MeiamSub.Shooter"]},{"Key":"Accept","Value":["*/*"]},{"Key":"traceparent","Value":["00-0be845f0940b9f0471c332d11ea77655-f06ab4e114900038-00"]}],"Properties":{},"Options":{}},"IsSuccessStatusCode":true}
[2022-07-28 19:32:34.615 +00:00] [INF] [50] Jellyfin.MeiamSub.Shooter.ShooterProvider: MeiamSub.Shooter Search | Summary -> Get  0  Subtitles

使用相同参数,Postman直接请求,结果有3条:

image

91270 commented 2 years ago

是否是同一个文件 hash ?

s0urcelab commented 2 years ago

hash是官方文档随测试文件附带的,肯定没有问题

91270 commented 2 years ago

你 POSTMAN 提交的是测试的 HASH ,当然有返回, 但是插件 提交的视频的 HASH 可能不存在字幕,不是每个视频就一定有匹配的字幕

s0urcelab commented 2 years ago

你 POSTMAN 提交的是测试的 HASH ,当然有返回, 但是插件 提交的视频的 HASH 可能不存在字幕,不是每个视频就一定有匹配的字幕

官方文档提供了一个测试用的视频文件和它对应的hash,现在用hash能搜到字幕,但是插件搜不到,不就说明了插件算出的hash有问题么?