MediaPortal Forums HTPC/MediaCenter

Go Back   MediaPortal Forum » MediaPortal 1 » Community Skins and Plugins » Plugins


Plugins Plugins developed and maintained by users. Want to create your own plugin? Start a thread in here.

Reply
 
Thread Tools Display Modes
Old 2005-06-07, 21:17   #1 (permalink)
Portal Member
 
Join Date: Dec 2004
Location: Germany
Posts: 139
Thanks: 0
Thanked 0 Times in 0 Posts


Default Why does MP only record with "Manual" as name

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
STSC is offline   Reply With Quote
Old 2005-06-08, 00:57   #2 (permalink)
Portal Member
 
Join Date: Feb 2005
Location: Melbourne, Australia
Posts: 131
Thanks: 0
Thanked 1 Time in 1 Post


Default

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
vbap is offline   Reply With Quote
Old 2005-06-08, 08:54   #3 (permalink)
Portal Member
 
Join Date: Dec 2004
Location: Germany
Posts: 139
Thanks: 0
Thanked 0 Times in 0 Posts


Default

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
STSC is offline   Reply With Quote
Old 2005-06-08, 22:41   #4 (permalink)
Portal Member
 
Join Date: Dec 2004
Location: Germany
Posts: 139
Thanks: 0
Thanked 0 Times in 0 Posts


Default

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
STSC is offline   Reply With Quote
Reply

Bookmarks

Tags
manual, record

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

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


All times are GMT +1. The time now is 06:24.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0 Protected by Akismet Blog with WordPress
Advertisement System V2.6 By   Branden