mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-07-09 03:04:24 -04:00
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);
|
var response = await GetRemoteSubtitles(subtitleId, cancellationToken).ConfigureAwait(false);
|
||||||
|
|
||||||
await TrySaveSubtitle(video, libraryOptions, response);
|
await TrySaveSubtitle(video, libraryOptions, response).ConfigureAwait(false);
|
||||||
}
|
}
|
||||||
catch (RateLimitExceededException)
|
catch (RateLimitExceededException)
|
||||||
{
|
{
|
||||||
@ -174,10 +174,10 @@ namespace MediaBrowser.Providers.Subtitles
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// <inheritdoc />
|
/// <inheritdoc />
|
||||||
public async Task UploadSubtitle(Video video, SubtitleResponse response)
|
public Task UploadSubtitle(Video video, SubtitleResponse response)
|
||||||
{
|
{
|
||||||
var libraryOptions = BaseItem.LibraryManager.GetLibraryOptions(video);
|
var libraryOptions = BaseItem.LibraryManager.GetLibraryOptions(video);
|
||||||
await TrySaveSubtitle(video, libraryOptions, response).ConfigureAwait(false);
|
return TrySaveSubtitle(video, libraryOptions, response);
|
||||||
}
|
}
|
||||||
|
|
||||||
private async Task TrySaveSubtitle(
|
private async Task TrySaveSubtitle(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user