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
Development
General Development (no feature request here!)
Is this the place where the "manual" is written in the recording table?
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="MoPhat" data-source="post: 290457" data-attributes="member: 52536"><p>Hi, for me its stupid that when a show is recorded and the epg is not filled or the epg time has changed that the recording is showed as "manual"...</p><p></p><p>after a few days we have a lot of recordings in the manual folder and i dont know which of them is the right one for watching (my wife is taking everytime about that stupid feature)</p><p></p><p>i have checked the tv server sources and have found just this one place where this is handled:</p><p></p><p>TVService \ Scheduler \ RecordingDetail.cs (line 57)</p><p>[CODE]</p><p> public RecordingDetail(Schedule schedule, Channel channel, DateTime startTime, DateTime endTime, bool isSerie)</p><p> {</p><p> _schedule = schedule;</p><p> _channel = channel;</p><p> _endTime = endTime;</p><p> _program = null;</p><p> _isSerie = isSerie;</p><p></p><p> TvDatabase.Program _current = schedule.ReferencedChannel().CurrentProgram; // current running program</p><p> TvDatabase.Program _next = schedule.ReferencedChannel().NextProgram; // next running one</p><p></p><p> //find which program we are recording</p><p> if (schedule.ScheduleType == (int)ScheduleRecordingType.Daily ||</p><p> schedule.ScheduleType == (int)ScheduleRecordingType.Weekends ||</p><p> schedule.ScheduleType == (int)ScheduleRecordingType.Weekly ||</p><p> schedule.ScheduleType == (int)ScheduleRecordingType.WorkingDays)</p><p> {</p><p> if (_current != null)</p><p> {</p><p> if (schedule.StartTime.Hour == _current.StartTime.Hour &&</p><p> schedule.StartTime.Minute == _current.StartTime.Minute)</p><p> // the program we wanna record is the current running show?</p><p> {</p><p> _program = _current;</p><p> }</p><p> }</p><p> if (_next != null)</p><p> {</p><p> // maybe the next then ...</p><p> {</p><p> if (schedule.StartTime.Hour == _next.StartTime.Hour &&</p><p> schedule.StartTime.Minute == _next.StartTime.Minute)</p><p> {</p><p> _program = _next;</p><p> }</p><p> }</p><p> }</p><p> }</p><p> else</p><p> {</p><p> _program = schedule.ReferencedChannel().GetProgramAt(schedule.StartTime.AddMinutes(schedule.PreRecordInterval));</p><p> }</p><p> //no program? then treat this as a manual recording</p><p> if (_program == null)</p><p> {</p><p> [COLOR="Red"][B] _program = new TvDatabase.Program(0, DateTime.Now, endTime, "manual", "", "", false, System.Data.SqlTypes.SqlDateTime.MinValue.Value, string.Empty, string.Empty, -1, string.Empty, 0);[/B][/COLOR] }</p><p> }</p><p>}</p><p>[/CODE]</p><p></p><p>Is the red marked line the code where writes the manual in the db instead the program name from the scheduler?</p><p></p><p>thx</p><p>MoPhat</p></blockquote><p></p>
[QUOTE="MoPhat, post: 290457, member: 52536"] Hi, for me its stupid that when a show is recorded and the epg is not filled or the epg time has changed that the recording is showed as "manual"... after a few days we have a lot of recordings in the manual folder and i dont know which of them is the right one for watching (my wife is taking everytime about that stupid feature) i have checked the tv server sources and have found just this one place where this is handled: TVService \ Scheduler \ RecordingDetail.cs (line 57) [CODE] public RecordingDetail(Schedule schedule, Channel channel, DateTime startTime, DateTime endTime, bool isSerie) { _schedule = schedule; _channel = channel; _endTime = endTime; _program = null; _isSerie = isSerie; TvDatabase.Program _current = schedule.ReferencedChannel().CurrentProgram; // current running program TvDatabase.Program _next = schedule.ReferencedChannel().NextProgram; // next running one //find which program we are recording if (schedule.ScheduleType == (int)ScheduleRecordingType.Daily || schedule.ScheduleType == (int)ScheduleRecordingType.Weekends || schedule.ScheduleType == (int)ScheduleRecordingType.Weekly || schedule.ScheduleType == (int)ScheduleRecordingType.WorkingDays) { if (_current != null) { if (schedule.StartTime.Hour == _current.StartTime.Hour && schedule.StartTime.Minute == _current.StartTime.Minute) // the program we wanna record is the current running show? { _program = _current; } } if (_next != null) { // maybe the next then ... { if (schedule.StartTime.Hour == _next.StartTime.Hour && schedule.StartTime.Minute == _next.StartTime.Minute) { _program = _next; } } } } else { _program = schedule.ReferencedChannel().GetProgramAt(schedule.StartTime.AddMinutes(schedule.PreRecordInterval)); } //no program? then treat this as a manual recording if (_program == null) { [COLOR="Red"][B] _program = new TvDatabase.Program(0, DateTime.Now, endTime, "manual", "", "", false, System.Data.SqlTypes.SqlDateTime.MinValue.Value, string.Empty, string.Empty, -1, string.Empty, 0);[/B][/COLOR] } } } [/CODE] Is the red marked line the code where writes the manual in the db instead the program name from the scheduler? thx MoPhat [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
Development
General Development (no feature request here!)
Is this the place where the "manual" is written in the recording table?
Contact us
RSS
Top
Bottom