mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-11-15 18:08:53 -07:00
Call GetConfiguration just once in function
This commit is contained in:
parent
159a244654
commit
8f4ac1cb81
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user