mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-07-09 03:04:24 -04:00
Merge pull request #8775 from SenorSmartyPants/DVRMetadata
Fixes https://github.com/jellyfin/jellyfin/issues/5178
This commit is contained in:
commit
43c3a465e6
@ -1814,21 +1814,29 @@ namespace Emby.Server.Implementations.LiveTv.EmbyTV
|
|||||||
program.AddGenre("News");
|
program.AddGenre("News");
|
||||||
}
|
}
|
||||||
|
|
||||||
if (timer.IsProgramSeries)
|
var config = GetConfiguration();
|
||||||
|
|
||||||
|
if (config.SaveRecordingNFO)
|
||||||
{
|
{
|
||||||
await SaveSeriesNfoAsync(timer, seriesPath).ConfigureAwait(false);
|
if (timer.IsProgramSeries)
|
||||||
await SaveVideoNfoAsync(timer, recordingPath, program, false).ConfigureAwait(false);
|
{
|
||||||
}
|
await SaveSeriesNfoAsync(timer, seriesPath).ConfigureAwait(false);
|
||||||
else if (!timer.IsMovie || timer.IsSports || timer.IsNews)
|
await SaveVideoNfoAsync(timer, recordingPath, program, false).ConfigureAwait(false);
|
||||||
{
|
}
|
||||||
await SaveVideoNfoAsync(timer, recordingPath, program, true).ConfigureAwait(false);
|
else if (!timer.IsMovie || timer.IsSports || timer.IsNews)
|
||||||
}
|
{
|
||||||
else
|
await SaveVideoNfoAsync(timer, recordingPath, program, true).ConfigureAwait(false);
|
||||||
{
|
}
|
||||||
await SaveVideoNfoAsync(timer, recordingPath, program, false).ConfigureAwait(false);
|
else
|
||||||
|
{
|
||||||
|
await SaveVideoNfoAsync(timer, recordingPath, program, false).ConfigureAwait(false);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
await SaveRecordingImages(recordingPath, program).ConfigureAwait(false);
|
if (config.SaveRecordingImages)
|
||||||
|
{
|
||||||
|
await SaveRecordingImages(recordingPath, program).ConfigureAwait(false);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
{
|
{
|
||||||
|
@ -320,7 +320,7 @@ namespace MediaBrowser.Controller.Entities.TV
|
|||||||
|
|
||||||
if (!IsLocked)
|
if (!IsLocked)
|
||||||
{
|
{
|
||||||
if (SourceType == SourceType.Library)
|
if (SourceType == SourceType.Library || SourceType == SourceType.LiveTV)
|
||||||
{
|
{
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
|
@ -40,5 +40,9 @@ namespace MediaBrowser.Model.LiveTv
|
|||||||
public string RecordingPostProcessor { get; set; }
|
public string RecordingPostProcessor { get; set; }
|
||||||
|
|
||||||
public string RecordingPostProcessorArguments { get; set; }
|
public string RecordingPostProcessorArguments { get; set; }
|
||||||
|
|
||||||
|
public bool SaveRecordingNFO { get; set; } = true;
|
||||||
|
|
||||||
|
public bool SaveRecordingImages { get; set; } = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user