Merge pull request #8775 from SenorSmartyPants/DVRMetadata

Fixes https://github.com/jellyfin/jellyfin/issues/5178
pull/9006/head
Bond-009 1 year ago committed by GitHub
commit 43c3a465e6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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

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

@ -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;
}
}

Loading…
Cancel
Save