Browse Source

Call GetConfiguration just once in function

SenorSmartyPants 2 years ago
parent
commit
8f4ac1cb81
1 changed files with 4 additions and 2 deletions
  1. 4 2
      Emby.Server.Implementations/LiveTv/EmbyTV/EmbyTV.cs

+ 4 - 2
Emby.Server.Implementations/LiveTv/EmbyTV/EmbyTV.cs

@@ -1814,7 +1814,9 @@ namespace Emby.Server.Implementations.LiveTv.EmbyTV
                     program.AddGenre("News");
                     program.AddGenre("News");
                 }
                 }
 
 
-                if (GetConfiguration().SaveRecordingNFO)
+                var config = GetConfiguration();
+
+                if (config.SaveRecordingNFO)
                 {
                 {
                     if (timer.IsProgramSeries)
                     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);
                     await SaveRecordingImages(recordingPath, program).ConfigureAwait(false);
                 }
                 }