async open subtitles

This commit is contained in:
Luke Pulverenti 2014-05-09 00:39:43 -04:00
parent b25bc74a7d
commit 388e87a349

View File

@ -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");