| |||||||
| Development You want to code something for the TV-Server? Share it in here! |
![]() |
| | Thread Tools | Display Modes |
| | #1 (permalink) |
| MP Donator ![]() Join Date: Jun 2007 Location: Berg Age: 35
Posts: 722
Thanks: 7
Thanked 60 Times in 13 Posts
Country: | 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)
{
_program = new TvDatabase.Program(0, DateTime.Now, endTime, "manual", "", "", false, System.Data.SqlTypes.SqlDateTime.MinValue.Value, string.Empty, string.Empty, -1, string.Empty, 0); }
}
}
thx MoPhat Last edited by MoPhat; 2008-08-12 at 13:29. |
| | |
![]() |
| Bookmarks |
| Tags |
| manual, place, recording, table, written |
| Thread Tools | |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| TO GIBMAN_dk Build 19192 "active recordings" problem with recording set as manual | iosub | Get Support | 2 | 2008-05-29 12:50 |
| WebConfig => Manual TV-Recordings has a "manual-" in there name!? | MoPhat | General Development (no feature request here!) | 0 | 2007-09-13 10:08 |
| Selecting "Manual Control" interrupts recordings/DVB-EPG Grabbing | Muldini | pre 1.0 RC1 | 4 | 2007-04-29 14:55 |
| Recording TV - "Record only new episodes", "Recording priority"? | Shurik | Improvement Suggestions | 1 | 2006-12-14 23:30 |