mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-11-15 18:08:53 -07:00
async open subtitles
This commit is contained in:
parent
b25bc74a7d
commit
388e87a349
@ -225,7 +225,7 @@ namespace MediaBrowser.Providers.Subtitles
|
||||
imdbid: searchImdbId ),
|
||||
};
|
||||
parms.AddRange(subtitleSearchParameters);
|
||||
var result = OpenSubtitles.SearchSubtitles(parms.ToArray());
|
||||
var result = await OpenSubtitles.SearchSubtitlesAsync(parms.ToArray(), cancellationToken).ConfigureAwait(false);
|
||||
if (!(result is MethodResponseSubtitleSearch))
|
||||
{
|
||||
_logger.Debug("Invalid response type");
|
||||
|
Loading…
Reference in New Issue
Block a user