Skip to content

Commit

Permalink
修复射手下载字幕提示 SSL 错误问题
Browse files Browse the repository at this point in the history
  • Loading branch information
91270 committed Dec 23, 2021
1 parent 08a1936 commit ea88774
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Emby.MeiamSub.Shooter/ShooterProvider.cs
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,8 @@ private async Task<SubtitleResponse> DownloadSubAsync(string info)
{
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
Expand All @@ -186,6 +188,7 @@ private async Task<SubtitleResponse> DownloadSubAsync(string info)
AcceptHeader = "*/*",
});


_logger.Debug($"MeiamSub.Shooter DownloadSub | Response -> { response.StatusCode }");

if (response.StatusCode == HttpStatusCode.OK)
Expand Down

0 comments on commit ea88774

Please sign in to comment.