7 Commits

Author SHA1 Message Date
Meiam
ea887747b7 修复射手下载字幕提示 SSL 错误问题 2021-12-23 20:35:23 +08:00
Meiam
08a1936bf5 Update README.MD 2021-11-23 10:59:46 +08:00
Meiam
5d4b42c1f8 更新说明 2021-08-18 16:16:00 +08:00
Meiam
2216cb40b3 修改说明文件 2021-07-10 14:34:59 +08:00
Meiam
08c0071910 增加请求超时时间 2021-07-10 14:22:30 +08:00
Meiam
309da9469b 修复射手字幕插件为获取到正常返回异常报错问题 2021-07-01 17:45:37 +08:00
Meiam
69f15709ac 更新说明及项目文件 2021-07-01 16:05:57 +08:00
6 changed files with 36 additions and 14 deletions

View File

@@ -9,7 +9,7 @@ namespace Emby.Subtitle.DevTool
{
static void Main(string[] args)
{
//Console.WriteLine(ComputeFileHash($"X:\\Download\\喋血战士 (2020)\\喋血战士 (2020) 1080p AAC.mp4"));
//Console.WriteLine(ComputeFileHash($"X:\\Favorites\\Movie\\八佰 (2020)\\八佰 (2020) 1080p TrueHD.mkv"));
Console.WriteLine(ComputeFileHash($"D:\\Documents\\Downloads\\testidx.avi"));
Console.ReadKey();
}

View File

@@ -1,8 +1,8 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<AssemblyVersion>1.0.1.0</AssemblyVersion>
<FileVersion>1.0.1.0</FileVersion>
<Version>1.0.1</Version>
<AssemblyVersion>1.0.2.0</AssemblyVersion>
<FileVersion>1.0.2.0</FileVersion>
<Version>1.0.2</Version>
</PropertyGroup>
<PropertyGroup>
<TargetFramework>netcoreapp3.1</TargetFramework>
@@ -10,6 +10,9 @@
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
<WarningLevel>2</WarningLevel>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'">
<OutputPath>..\Release</OutputPath>
</PropertyGroup>
<ItemGroup>
<None Remove="Thumb.png" />
</ItemGroup>

View File

@@ -85,8 +85,9 @@ namespace Emby.MeiamSub.Shooter
HttpRequestOptions options = new HttpRequestOptions
{
Url = $"http://shooter.cn/api/subapi.php",
Url = $"http://www.shooter.cn/api/subapi.php",
UserAgent = "Emby.MeiamSub.Shooter",
TimeoutMs = 30000,
AcceptHeader = "*/*",
};
@@ -104,7 +105,7 @@ namespace Emby.MeiamSub.Shooter
_logger.Debug($"MeiamSub.Shooter Search | Response -> { _jsonSerializer.SerializeToString(response) }");
if (response.StatusCode == HttpStatusCode.OK)
if (response.StatusCode == HttpStatusCode.OK && response.ContentType.Contains("application/json"))
{
var subtitleResponse = _jsonSerializer.DeserializeFromStream<List<SubtitleResponseRoot>>(response.Content);
@@ -175,13 +176,19 @@ namespace Emby.MeiamSub.Shooter
{
var downloadSub = _jsonSerializer.DeserializeFromString<DownloadSubInfo>(Base64Decode(info));
downloadSub.Url = downloadSub.Url.Replace("https://www.shooter.cn", "http://www.shooter.cn");
_logger.Debug($"MeiamSub.Shooter DownloadSub | Url -> { downloadSub.Url } | Format -> { downloadSub.Format } | Language -> { downloadSub.Language } ");
var response = await _httpClient.GetResponse(new HttpRequestOptions
{
Url = downloadSub.Url
Url = downloadSub.Url,
UserAgent = "Emby.MeiamSub.Shooter",
TimeoutMs = 30000,
AcceptHeader = "*/*",
});
_logger.Debug($"MeiamSub.Shooter DownloadSub | Response -> { response.StatusCode }");
if (response.StatusCode == HttpStatusCode.OK)

View File

@@ -1,14 +1,18 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<AssemblyVersion>1.0.1.0</AssemblyVersion>
<FileVersion>1.0.1.0</FileVersion>
<Version>1.0.1</Version>
<AssemblyVersion>1.0.2.0</AssemblyVersion>
<FileVersion>1.0.2.0</FileVersion>
<Version>1.0.2</Version>
</PropertyGroup>
<PropertyGroup>
<TargetFramework>netcoreapp3.1</TargetFramework>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'">
<OutputPath>..\Release</OutputPath>
</PropertyGroup>
<ItemGroup>
<None Remove="Thumb.png" />

View File

@@ -83,7 +83,10 @@ namespace Emby.MeiamSub.Thunder
var response = await _httpClient.GetResponse(new HttpRequestOptions
{
Url = $"http://sub.xmp.sandai.net:8000/subxl/{cid}.json"
Url = $"http://sub.xmp.sandai.net:8000/subxl/{cid}.json",
UserAgent = "Emby.MeiamSub.Thunder",
TimeoutMs = 30000,
AcceptHeader = "*/*",
});
_logger.Debug($"MeiamSub.Thunder Search | Response -> { _jsonSerializer.SerializeToString(response) }");
@@ -159,7 +162,10 @@ namespace Emby.MeiamSub.Thunder
var response = await _httpClient.GetResponse(new HttpRequestOptions
{
Url = downloadSub.Url
Url = downloadSub.Url,
UserAgent = "Emby.MeiamSub.Thunder",
TimeoutMs = 30000,
AcceptHeader = "*/*",
});
_logger.Debug($"MeiamSub.Thunder DownloadSub | Response -> { response.StatusCode }");

View File

@@ -22,8 +22,8 @@ Emby 中文字幕插件 ,支持 迅雷影音、射手网、 精准匹配,自
## 功能介绍
- [x] 支持 迅雷看看 Hash 匹配自动下载字幕
- [ ] 支持 射手影音 Hash 匹配自动下载字幕
- [x] 支持 迅雷看看 字幕下载 Hash匹配
- [x] 支持 射手影音 字幕下载 Hash匹配
## 项目说明
@@ -38,6 +38,8 @@ Emby 中文字幕插件 ,支持 迅雷影音、射手网、 精准匹配,自
## 使用插件
首先下载已编译好的插件 [LINK](https://github.com/91270/Emby.MeiamSub/releases)
### WINDOWS
```bash
复制插件文件到 Emby-Server\Programdata\Plugins\