| |||||||
| Plugins Plugins developed and maintained by users. Want to create your own plugin? Start a thread in here. |
![]() |
| | Thread Tools | Display Modes |
| | #1 (permalink) |
| Portal Member Join Date: Dec 2004 Location: Germany
Posts: 139
Thanks: 0
Thanked 0 Times in 0 Posts
| Hi, when I make a recording with "manual" as name everything works find, but when I change it in the database to something else or when I use the PVR Scheduler Plugin and schedule a recording not with "manual" then MP doesn't work. Is there any reason? I put the sources of the the PVR Scheduler Plugin for MediaPortal in my download area, because frodo requested it. If it is acceptable to Sam I will also put the sources of the ECP2 in my download area, but I have to talk to Sam first. http://www.pvr-scheduler.de
__________________ HTPC: P3-S 1133@1133@1,1V passiv ASUS TUSL2-M Skystar 2 Creative Soundblaster nVidia FX5200 120G Samsung SV1204 Toshiba SD-M1712 (Silent Firmware) -------------------------------------------- PVR Scheduler with MediaPortal Plugin http://www.pvr-scheduler.de |
| | |
| | #2 (permalink) |
| Portal Member Join Date: Feb 2005 Location: Melbourne, Australia
Posts: 131
Thanks: 0
Thanked 1 Time in 1 Post
| I have noticed (I'm on 0.1.0.10_2) that manual recordings will be listed under Scheduled Recordings as "Manual", but some time after the recording is completed (not sure exactly when), it seems to pick up the info from the EPG, so that "Manual" is replaced with "<Program name>" in the RecordTV listings. I actually like this feature....!
__________________ My Media PC Set-up |
| | |
| | #3 (permalink) |
| Portal Member Join Date: Dec 2004 Location: Germany
Posts: 139
Thanks: 0
Thanked 0 Times in 0 Posts
| But you said it does not work everytime. And what about the people that use an online EPG on the web to scheduler their recordings? So it would not be too bad to change that. Thanks!!
__________________ HTPC: P3-S 1133@1133@1,1V passiv ASUS TUSL2-M Skystar 2 Creative Soundblaster nVidia FX5200 120G Samsung SV1204 Toshiba SD-M1712 (Silent Firmware) -------------------------------------------- PVR Scheduler with MediaPortal Plugin http://www.pvr-scheduler.de |
| | |
| | #4 (permalink) |
| Portal Member Join Date: Dec 2004 Location: Germany
Posts: 139
Thanks: 0
Thanked 0 Times in 0 Posts
| Ok I found the issue. Is there any reason, that a program is needed to make a e.g. weekly recording? Code: /// <summary>
/// Checks whether the recording should record the specified TVProgram
/// at the specified time including the pre/post intervals
/// </summary>
/// <param name="dtTime">time</param>
/// <param name="TVProgram">TVProgram</param>
/// <param name="iPreInterval">pre record interval</param>
/// <param name="iPostInterval">post record interval</param>
/// <returns>true if the recording should record</returns>
/// <seealso cref="MediaPortal.TV.Database.TVProgram"/>
public bool IsRecordingProgramAtTime(DateTime dtTime,TVProgram currentProgram, int iPreInterval, int iPostInterval)
{
DateTime dtStart;
DateTime dtEnd;
switch (RecType)
{
// record program just once
case RecordingType.Once:
if (dtTime >= this.StartTime.AddMinutes(-iPreInterval) && dtTime <= this.EndTime.AddMinutes(iPostInterval) )
{
if (Canceled>0)
{
return false;
}
if (currentProgram!=null)
{
if (currentProgram.Channel!=this.Channel) return false;
if (dtTime >= currentProgram.StartTime.AddMinutes(-iPreInterval) && dtTime <= currentProgram.EndTime.AddMinutes(iPostInterval) )
{
return true;
}
return false;
}
string strManual=GUILocalizeStrings.Get(413);
if (this.Title.Length==0 || String.Compare(this.Title,strManual,true)==0) return true;
strManual=GUILocalizeStrings.Get(736);
if (this.Title.Length==0 || String.Compare(this.Title,strManual,true)==0) return true;
return false;
}
break;
// record program daily at same time & channel
case RecordingType.WeekDays:
if (currentProgram==null) return false; //we need a program
if (currentProgram.Channel==this.Channel) //check channel is correct
{
// check if program start/date time is correct
dtStart=new DateTime(dtTime.Year,dtTime.Month,dtTime.Day,currentProgram.StartTime.Hour,StartTime.Minute,0);
dtEnd =new DateTime(dtTime.Year,dtTime.Month,dtTime.Day,currentProgram.EndTime.Hour ,EndTime.Minute ,0);
if (dtStart.DayOfWeek>=DayOfWeek.Monday && dtStart.DayOfWeek<=DayOfWeek.Friday)
{
if (dtTime >= dtStart.AddMinutes(-iPreInterval) && dtTime <= dtEnd.AddMinutes(iPostInterval) )
{
// check if recording start/date time is correct
dtStart=new DateTime(dtTime.Year,dtTime.Month,dtTime.Day,this.StartTime.Hour,StartTime.Minute,0);
dtEnd =new DateTime(dtTime.Year,dtTime.Month,dtTime.Day,this.EndTime.Hour ,EndTime.Minute ,0);
if (dtTime >= dtStart.AddMinutes(-iPreInterval) && dtTime <= dtEnd.AddMinutes(iPostInterval) )
{
// not canceled?
if (IsSerieIsCanceled(currentProgram.StartTime))
{
return false;
}
return true;
}
}
}
}
break;
// record program daily at same time & channel
case RecordingType.Daily:
if (currentProgram==null) return false; //we need a program
if (currentProgram.Channel==this.Channel) //check channel is correct
{
// check if program start/date time is correct
dtStart=new DateTime(dtTime.Year,dtTime.Month,dtTime.Day,currentProgram.StartTime.Hour,StartTime.Minute,0);
dtEnd =new DateTime(dtTime.Year,dtTime.Month,dtTime.Day,currentProgram.EndTime.Hour ,EndTime.Minute ,0);
if (dtTime >= dtStart.AddMinutes(-iPreInterval) && dtTime <= dtEnd.AddMinutes(iPostInterval) )
{
// check if recording start/date time is correct
dtStart=new DateTime(dtTime.Year,dtTime.Month,dtTime.Day,this.StartTime.Hour,StartTime.Minute,0);
dtEnd =new DateTime(dtTime.Year,dtTime.Month,dtTime.Day,this.EndTime.Hour ,EndTime.Minute ,0);
if (dtTime >= dtStart.AddMinutes(-iPreInterval) && dtTime <= dtEnd.AddMinutes(iPostInterval) )
{
// not canceled?
if (IsSerieIsCanceled(currentProgram.StartTime))
{
return false;
}
return true;
}
}
}
break;
// record program weekly at same time & channel
case RecordingType.Weekly:
if (currentProgram==null) return false; // we need a program
if (currentProgram.Channel==this.Channel) // check if channel is correct
{
// check if day of week of program matches
if (currentProgram.StartTime.DayOfWeek== dtTime.DayOfWeek)
{
// check if start/end time of program is correct
dtStart=new DateTime(dtTime.Year,dtTime.Month,dtTime.Day,currentProgram.StartTime.Hour,currentProgram.StartTime.Minute,0);
dtEnd =new DateTime(dtTime.Year,dtTime.Month,dtTime.Day,currentProgram.EndTime.Hour ,currentProgram.EndTime.Minute ,0);
if (dtTime >= dtStart.AddMinutes(-iPreInterval) && dtTime <= dtEnd.AddMinutes(iPostInterval) )
{
// check if day of week of recording matches
if (this.StartTime.DayOfWeek == dtTime.DayOfWeek)
{
// check if start/end time of recording is correct
dtStart=new DateTime(dtTime.Year,dtTime.Month,dtTime.Day,this.StartTime.Hour,this.StartTime.Minute,0);
dtEnd =new DateTime(dtTime.Year,dtTime.Month,dtTime.Day,this.EndTime.Hour ,this.EndTime.Minute ,0);
if (dtTime >= dtStart.AddMinutes(-iPreInterval) && dtTime <= dtEnd.AddMinutes(iPostInterval) )
{
// not canceled?
if (IsSerieIsCanceled(currentProgram.StartTime))
{
return false;
}
return true;
}
}
}
}
}
break;
//record program everywhere
case RecordingType.EveryTimeOnEveryChannel:
if (currentProgram==null) return false; // we need a program
if (currentProgram.Title==this.Title) // check title
{
// check program time
if (dtTime >= currentProgram.StartTime.AddMinutes(-iPreInterval) &&
dtTime <= currentProgram.EndTime.AddMinutes(iPostInterval) )
{
// not canceled?
if (IsSerieIsCanceled(currentProgram.StartTime))
{
return false;
}
return true;
}
}
break;
//record program on this channel
case RecordingType.EveryTimeOnThisChannel:
if (currentProgram==null) return false; // we need a channel
// check channel & title
if (currentProgram.Title==this.Title && currentProgram.Channel==this.Channel)
{
// check time
if (dtTime >= currentProgram.StartTime.AddMinutes(-iPreInterval) &&
dtTime <= currentProgram.EndTime.AddMinutes(iPostInterval) )
{
// not canceled?
if (IsSerieIsCanceled(currentProgram.StartTime))
{
return false;
}
return true;
}
}
break;
}
return false;
}
__________________ HTPC: P3-S 1133@1133@1,1V passiv ASUS TUSL2-M Skystar 2 Creative Soundblaster nVidia FX5200 120G Samsung SV1204 Toshiba SD-M1712 (Silent Firmware) -------------------------------------------- PVR Scheduler with MediaPortal Plugin http://www.pvr-scheduler.de |
| | |
![]() |
| Bookmarks |
| Tags |
| manual, record |
| Thread Tools | |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Recording Conflicts | gwiley | General Support | 15 | 2006-09-15 07:28 |
| Episode Management: Record in this timeslot | Ralph | Improvement Suggestions | 4 | 2006-08-02 17:00 |
| still problems with tuner (PVR500 does not record) | rovalis | General Support | 0 | 2006-03-11 21:34 |
| Feature suggestion: record now for x min. | boubou | General Development (no feature request here!) | 2 | 2005-12-09 10:45 |