fix: fix download actor image on https. (close #39)
This commit is contained in:
parent
41293f00e4
commit
a62d6e9ac7
|
@ -65,9 +65,9 @@ public class Plugin : BasePlugin<PluginConfiguration>, IHasWebPages
|
|||
};
|
||||
}
|
||||
|
||||
public string GetLocalApiBaseUrl(string hostname = "127.0.0.1")
|
||||
public string GetLocalApiBaseUrl()
|
||||
{
|
||||
return this._appHost.GetSmartApiUrl(hostname);
|
||||
return this._appHost.GetLocalApiUrl("127.0.0.1", "http");
|
||||
}
|
||||
|
||||
public string GetApiBaseUrl(HttpRequest request)
|
||||
|
|
|
@ -471,7 +471,7 @@ namespace Jellyfin.Plugin.MetaShark.Providers
|
|||
|
||||
protected string GetLocalProxyImageUrl(string url)
|
||||
{
|
||||
var baseUrl = Plugin.Instance?.GetLocalApiBaseUrl("127.0.0.1");
|
||||
var baseUrl = Plugin.Instance?.GetLocalApiBaseUrl();
|
||||
if (!string.IsNullOrEmpty(config.DoubanImageProxyBaseUrl))
|
||||
{
|
||||
baseUrl = config.DoubanImageProxyBaseUrl.TrimEnd('/');
|
||||
|
@ -518,7 +518,7 @@ namespace Jellyfin.Plugin.MetaShark.Providers
|
|||
}
|
||||
|
||||
// 自动扫描刷新时,直接使用本地地址
|
||||
return Plugin.Instance?.GetLocalApiBaseUrl("127.0.0.1") ?? string.Empty;
|
||||
return Plugin.Instance?.GetLocalApiBaseUrl() ?? string.Empty;
|
||||
}
|
||||
|
||||
protected void Log(string? message, params object?[] args)
|
||||
|
|
Loading…
Reference in New Issue