Recorded TV exceeds limit (1 Viewer)

azeroth

Portal Member
June 10, 2015
14
10
37
Home Country
United States of America United States of America
Is there anyway to stop recording new episodes when the limit is reached.

Ex:

I have a schedule that is set to Every time for a specific channel.
Keep until is set to Until watched/Always
Episodes Management is set to 5

Result: The limit of 5 is ignored and new episodes keep recording.

I don't want the episodes to keep bumping the oldest like they would with keep until space needed.

I just want to stop recording that episode until I watch/delete some and once again am under the limit specified.

Is there anyway to do this?

Thanks!
 

mm1352000

Retired Team Member
  • Premium Supporter
  • September 1, 2008
    21,577
    8,224
    Home Country
    New Zealand New Zealand
    Is there anyway to stop recording new episodes when the limit is reached.
    I think the answer is: no, not directly.
    TV Server is designed to always record new episodes (subject to matching episode checks).
    You can configure TV Server to throw away older episodes based on disk space constraints or episode count. However, those conditions won't stop TV Server recording new episodes.
    The only other option would be to cancel episodes manually before they record.

    Result: The limit of 5 is ignored and new episodes keep recording.
    If you set episode management to 5, TV Server should only keep the newest 5 recordings.
    1. Is TV Server not doing that for you?
    2. Do you not want that?
     

    azeroth

    Portal Member
    June 10, 2015
    14
    10
    37
    Home Country
    United States of America United States of America
    Personally I would expect both conditions to always constrain the scheduler.

    1. If I wanted 5 newest I should mark it as delete when space is needed with the limit set to 5.
    2. If I want 5 and no new recordings I would set it to delete when watched/never with a limit set to 5.

    Currently #2 records all episodes as if no limit has been set.

    Use case: I want to watch some reruns. I don't care what episode they are. I don't want my drive filled with every instance of that show, I'd rather cap it to a limit and then let more get recorded once I delete some.

    I actually relied on this feature a lot in WMC and miss it in MP.

    Thanks!
     
    Last edited:

    azeroth

    Portal Member
    June 10, 2015
    14
    10
    37
    Home Country
    United States of America United States of America
    I feel like this could be fixed pretty easily unless it's not the desired functionality.

    Took a look in Scheduler.cs and I think it's as simple as doing this:
    Add this 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;
        }

    Then in StartAnyDueRecordings()

    Code:
    ...
    if (IsEpisodeUnrecorded(schedule.ScheduleType, newRecording) && !IsEpisodeMaxReached(schedule))
    ...

    Icons could also 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.

    Thoughts?

    Thanks
     

    azeroth

    Portal Member
    June 10, 2015
    14
    10
    37
    Home Country
    United States of America United States of America
    Added to suggestion area in dev. Figured that was a better spot for this.

    ../threads/fix-recordings-to-respect-recording-limit.131110/

    If it try to add the whole link though I get an error...

    Thanks!
     

    Users who are viewing this thread

    Top Bottom