Summary:
Stop recording new episodes when limit is reached for until I watch/keep until/until I delete KeepMethod types.
I think that the episode limit should always restrict recording. Right now if you have any of the three keep types above, the recorder will record every episode as if no limit was applied.
Area:
TV Server
Description:
Just check for episode count before starting a recording for the above types.
Template code:
Scheduler.cs
New helper Method:
in StartAnyDueRecordings() method
Summary:
This code is untested but seems like it should do the trick.
Also an [won't be recorded] icon could be added to the guide to show that it wont be recorded because it will exceed the limit. I didn't dig this far though.
Stop recording new episodes when limit is reached for until I watch/keep until/until I delete KeepMethod types.
I think that the episode limit should always restrict recording. Right now if you have any of the three keep types above, the recorder will record every episode as if no limit was applied.
Area:
TV Server
Description:
Just check for episode count before starting a recording for the above types.
Template code:
Scheduler.cs
New helper Method:
Code:
private bool IsEpisodeMaxReached(Schedule schedule)
{
IList<Recording> recordings = Recording.ListAll();
var episodeManagement = new EpisodeManagement();
List<Recording> episodes = episodeManagement.GetEpisodes(schedule.ProgramName, recordings);
if (episodes.Count >= schedule.MaxAirings && (schedule.KeepMethod == (int)KeepMethodType.Always || schedule.KeepMethod == (int)KeepMethodType.UntilWatched))
{
return true;
}
return false;
}
in StartAnyDueRecordings() method
Code:
...
if (IsEpisodeUnrecorded(schedule.ScheduleType, newRecording) && !IsEpisodeMaxReached(schedule))
...
Summary:
This code is untested but seems like it should do the trick.
Also an [won't be recorded] icon could be added to the guide to show that it wont be recorded because it will exceed the limit. I didn't dig this far though.