remove var url

This commit is contained in:
MBR#0001 2021-12-07 13:13:44 +01:00
parent abf87985d7
commit de7daa7a9b
No known key found for this signature in database
GPG Key ID: A938970B8DD3F170

View File

@ -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++;