aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Providers
diff options
context:
space:
mode:
authorClaus Vium <cvium@users.noreply.github.com>2020-11-08 11:20:28 +0100
committerGitHub <noreply@github.com>2020-11-08 11:20:28 +0100
commit38185f832688a3329045ee1bb26a38445c7777b2 (patch)
treefc60a1ce4f87a4b1b4a73bafe6b695bff158754a /MediaBrowser.Providers
parentdfbe4413ff89aced08dae1222a82468e6d322b43 (diff)
Apply suggestions from code review
Diffstat (limited to 'MediaBrowser.Providers')
-rw-r--r--MediaBrowser.Providers/Subtitles/SubtitleManager.cs6
1 files changed, 3 insertions, 3 deletions
diff --git a/MediaBrowser.Providers/Subtitles/SubtitleManager.cs b/MediaBrowser.Providers/Subtitles/SubtitleManager.cs
index f4a58775d..49ee70bb5 100644
--- a/MediaBrowser.Providers/Subtitles/SubtitleManager.cs
+++ b/MediaBrowser.Providers/Subtitles/SubtitleManager.cs
@@ -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(