home
products
contribute
download
documentation
forum
Home
Forums
New posts
Search forums
What's new
New posts
All posts
Latest activity
Members
Registered members
Current visitors
Donate
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Search titles only
By:
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
MediaPortal 1
Support
General Support
Recorded TV exceeds limit
Contact us
RSS
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="azeroth" data-source="post: 1140245" data-attributes="member: 152992"><p>I feel like this could be fixed pretty easily unless it's not the desired functionality.</p><p></p><p>Took a look in Scheduler.cs and I think it's as simple as doing this:</p><p>Add this helper method:</p><p>[CODE=C#] private bool IsEpisodeMaxReached(Schedule schedule)</p><p> {</p><p> IList<Recording> recordings = Recording.ListAll();</p><p> var episodeManagement = new EpisodeManagement();</p><p> List<Recording> episodes = episodeManagement.GetEpisodes(schedule.ProgramName, recordings);</p><p> if (episodes.Count >= schedule.MaxAirings && (schedule.KeepMethod == (int)KeepMethodType.Always || schedule.KeepMethod == (int)KeepMethodType.UntilWatched))</p><p> {</p><p> return true;</p><p> }</p><p> return false;</p><p> }[/CODE]</p><p></p><p>Then in StartAnyDueRecordings()</p><p></p><p>[CODE=C#]</p><p>...</p><p>if (IsEpisodeUnrecorded(schedule.ScheduleType, newRecording) && !IsEpisodeMaxReached(schedule))</p><p>...</p><p>[/CODE]</p><p></p><p>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.</p><p></p><p>Thoughts?</p><p></p><p>Thanks</p></blockquote><p></p>
[QUOTE="azeroth, post: 1140245, member: 152992"] 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=C#] 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; }[/CODE] Then in StartAnyDueRecordings() [CODE=C#] ... if (IsEpisodeUnrecorded(schedule.ScheduleType, newRecording) && !IsEpisodeMaxReached(schedule)) ... [/CODE] 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 [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
Support
General Support
Recorded TV exceeds limit
Contact us
RSS
Top
Bottom