diff options
| author | SenorSmartyPants <senorsmartypants@gmail.com> | 2022-11-27 13:13:11 -0600 |
|---|---|---|
| committer | SenorSmartyPants <senorsmartypants@gmail.com> | 2022-11-27 13:13:11 -0600 |
| commit | 8f4ac1cb811ac4d62512149a5feb01703004b058 (patch) | |
| tree | 78632a1d51813b76b7c5d48d3c6832148f8df506 | |
| parent | 159a244654aa533a149fe00636c9c8e8fa5d2c01 (diff) | |
Call GetConfiguration just once in function
| -rw-r--r-- | Emby.Server.Implementations/LiveTv/EmbyTV/EmbyTV.cs | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Emby.Server.Implementations/LiveTv/EmbyTV/EmbyTV.cs b/Emby.Server.Implementations/LiveTv/EmbyTV/EmbyTV.cs index 6739c10c1..f27978a44 100644 --- a/Emby.Server.Implementations/LiveTv/EmbyTV/EmbyTV.cs +++ b/Emby.Server.Implementations/LiveTv/EmbyTV/EmbyTV.cs @@ -1814,7 +1814,9 @@ namespace Emby.Server.Implementations.LiveTv.EmbyTV program.AddGenre("News"); } - if (GetConfiguration().SaveRecordingNFO) + var config = GetConfiguration(); + + if (config.SaveRecordingNFO) { if (timer.IsProgramSeries) { @@ -1831,7 +1833,7 @@ namespace Emby.Server.Implementations.LiveTv.EmbyTV } } - if (GetConfiguration().SaveRecordingImages) + if (config.SaveRecordingImages) { await SaveRecordingImages(recordingPath, program).ConfigureAwait(false); } |
