mirror of
https://github.com/jellyfin/jellyfin-plugin-opensubtitles.git
synced 2024-11-23 06:09:51 +00:00
remove var url
This commit is contained in:
parent
abf87985d7
commit
de7daa7a9b
@ -43,8 +43,6 @@ namespace Jellyfin.Plugin.OpenSubtitles.OpenSubtitlesHandler
|
|||||||
int attempt,
|
int attempt,
|
||||||
CancellationToken cancellationToken)
|
CancellationToken cancellationToken)
|
||||||
{
|
{
|
||||||
var url = BaseApiUrl + endpoint;
|
|
||||||
|
|
||||||
headers ??= new Dictionary<string, string>();
|
headers ??= new Dictionary<string, string>();
|
||||||
|
|
||||||
if (string.IsNullOrWhiteSpace(apiKey))
|
if (string.IsNullOrWhiteSpace(apiKey))
|
||||||
@ -81,7 +79,7 @@ namespace Jellyfin.Plugin.OpenSubtitles.OpenSubtitlesHandler
|
|||||||
_requestCount = 0;
|
_requestCount = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
var response = await OpenSubtitlesRequestHelper.Instance!.SendRequestAsync(url, method, body, headers, cancellationToken).ConfigureAwait(false);
|
var response = await OpenSubtitlesRequestHelper.Instance!.SendRequestAsync(BaseApiUrl + endpoint, method, body, headers, cancellationToken).ConfigureAwait(false);
|
||||||
|
|
||||||
_requestCount++;
|
_requestCount++;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user