mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-03-17 15:46:22 +00:00
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:
@@ -1814,21 +1814,27 @@ namespace Emby.Server.Implementations.LiveTv.EmbyTV
|
||||
program.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);
|
||||
}
|
||||
else
|
||||
{
|
||||
await SaveVideoNfoAsync(timer, recordingPath, program, false).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);
|
||||
}
|
||||
}
|
||||
|
||||
await SaveRecordingImages(recordingPath, program).ConfigureAwait(false);
|
||||
if (GetConfiguration().SaveRecordingImages)
|
||||
{
|
||||
await SaveRecordingImages(recordingPath, program).ConfigureAwait(false);
|
||||
}
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user