Apply suggestions from code review
This commit is contained in:
parent
dfbe4413ff
commit
38185f8326
|
@ -154,7 +154,7 @@ namespace MediaBrowser.Providers.Subtitles
|
|||
{
|
||||
var response = await GetRemoteSubtitles(subtitleId, cancellationToken).ConfigureAwait(false);
|
||||
|
||||
await TrySaveSubtitle(video, libraryOptions, response);
|
||||
await TrySaveSubtitle(video, libraryOptions, response).ConfigureAwait(false);
|
||||
}
|
||||
catch (RateLimitExceededException)
|
||||
{
|
||||
|
@ -174,10 +174,10 @@ namespace MediaBrowser.Providers.Subtitles
|
|||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
public async Task UploadSubtitle(Video video, SubtitleResponse response)
|
||||
public Task UploadSubtitle(Video video, SubtitleResponse response)
|
||||
{
|
||||
var libraryOptions = BaseItem.LibraryManager.GetLibraryOptions(video);
|
||||
await TrySaveSubtitle(video, libraryOptions, response).ConfigureAwait(false);
|
||||
return TrySaveSubtitle(video, libraryOptions, response);
|
||||
}
|
||||
|
||||
private async Task TrySaveSubtitle(
|
||||
|
|
Loading…
Reference in New Issue
Block a user