Add Options to disable DVR NFO and image saving

- SaveRecordingNFO and SaveRecordingImages default to true. Maintains current behavior.
- Episode.FillMissingEpisodeNumbersFromPath for live tv so external metadata can be pulled when recording starts.
This commit is contained in:
SenorSmartyPants 2022-11-19 14:14:41 -06:00
parent b5f9a093dd
commit 159a244654
3 changed files with 23 additions and 13 deletions

View File

@ -1814,6 +1814,8 @@ namespace Emby.Server.Implementations.LiveTv.EmbyTV
program.AddGenre("News");
}
if (GetConfiguration().SaveRecordingNFO)
{
if (timer.IsProgramSeries)
{
await SaveSeriesNfoAsync(timer, seriesPath).ConfigureAwait(false);
@ -1827,9 +1829,13 @@ namespace Emby.Server.Implementations.LiveTv.EmbyTV
{
await SaveVideoNfoAsync(timer, recordingPath, program, false).ConfigureAwait(false);
}
}
if (GetConfiguration().SaveRecordingImages)
{
await SaveRecordingImages(recordingPath, program).ConfigureAwait(false);
}
}
catch (Exception ex)
{
_logger.LogError(ex, "Error saving nfo");

View File

@ -320,7 +320,7 @@ namespace MediaBrowser.Controller.Entities.TV
if (!IsLocked)
{
if (SourceType == SourceType.Library)
if (SourceType == SourceType.Library || SourceType == SourceType.LiveTV)
{
try
{

View File

@ -40,5 +40,9 @@ namespace MediaBrowser.Model.LiveTv
public string RecordingPostProcessor { get; set; }
public string RecordingPostProcessorArguments { get; set; }
public bool SaveRecordingNFO { get; set; } = true;
public bool SaveRecordingImages { get; set; } = true;
}
}