The Free Software Media System - Server Backend & API
Add Options to disable DVR NFO and image saving
SenorSmartyPants159a244654aa
diff --git a/Emby.Server.Implementations/LiveTv/EmbyTV/EmbyTV.cs b/Emby.Server.Implementations/LiveTv/EmbyTV/EmbyTV.csindex a0ae328a47..6739c10c1e 100644--- a/Emby.Server.Implementations/LiveTv/EmbyTV/EmbyTV.cs+++ b/Emby.Server.Implementations/LiveTv/EmbyTV/EmbyTV.cs@@ -1814,21 +1814,27 @@ namespace Emby.Server.Implementations.LiveTv.EmbyTVprogram.AddGenre("News");}- if (timer.IsProgramSeries)+ if (GetConfiguration().SaveRecordingNFO){- await SaveSeriesNfoAsync(timer, seriesPath).ConfigureAwait(false);- await SaveVideoNfoAsync(timer, recordingPath, program, false).ConfigureAwait(false);- }- else if (!timer.IsMovie || timer.IsSports || timer.IsNews)- {- await SaveVideoNfoAsync(timer, recordingPath, program, true).ConfigureAwait(false);+ if (timer.IsProgramSeries)+ {+ await SaveSeriesNfoAsync(timer, seriesPath).ConfigureAwait(false);+ await SaveVideoNfoAsync(timer, recordingPath, program, false).ConfigureAwait(false);+ }+ else if (!timer.IsMovie || timer.IsSports || timer.IsNews)+ {+ await SaveVideoNfoAsync(timer, recordingPath, program, true).ConfigureAwait(false);+ }+ else+ {+ await SaveVideoNfoAsync(timer, recordingPath, program, false).ConfigureAwait(false);+ }}- else++ if (GetConfiguration().SaveRecordingImages){- await SaveVideoNfoAsync(timer, recordingPath, program, false).ConfigureAwait(false);+ await SaveRecordingImages(recordingPath, program).ConfigureAwait(false);}-- await SaveRecordingImages(recordingPath, program).ConfigureAwait(false);}catch (Exception ex){diff --git a/MediaBrowser.Controller/Entities/TV/Episode.cs b/MediaBrowser.Controller/Entities/TV/Episode.csindex 15b721fe63..285d3ef085 100644--- a/MediaBrowser.Controller/Entities/TV/Episode.cs+++ b/MediaBrowser.Controller/Entities/TV/Episode.cs@@ -320,7 +320,7 @@ namespace MediaBrowser.Controller.Entities.TVif (!IsLocked){- if (SourceType == SourceType.Library)+ if (SourceType == SourceType.Library || SourceType == SourceType.LiveTV){try{diff --git a/MediaBrowser.Model/LiveTv/LiveTvOptions.cs b/MediaBrowser.Model/LiveTv/LiveTvOptions.csindex 4cece941cf..25e5c77969 100644--- a/MediaBrowser.Model/LiveTv/LiveTvOptions.cs+++ b/MediaBrowser.Model/LiveTv/LiveTvOptions.cs@@ -40,5 +40,9 @@ namespace MediaBrowser.Model.LiveTvpublic string RecordingPostProcessor { get; set; }public string RecordingPostProcessorArguments { get; set; }++ public bool SaveRecordingNFO { get; set; } = true;++ public bool SaveRecordingImages { get; set; } = true;}}