MediaPortal Forums HTPC/MediaCenter

Go Back   MediaPortal Forum » MediaPortal TV-Server » Help on Development » Development


Development You want to code something for the TV-Server? Share it in here!

Reply
 
Thread Tools Display Modes
Old 2008-08-06, 11:42   #1 (permalink)
MP Donator
 
MoPhat's Avatar
 
Join Date: Jun 2007
Location: Berg
Age: 35
Posts: 722
Thanks: 7
Thanked 60 Times in 13 Posts

Country:

My System

Exclamation Is this the place where the "manual" is written in the recording table?

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);      }
    }
}
Is the red marked line the code where writes the manual in the db instead the program name from the scheduler?

thx
MoPhat

Last edited by MoPhat; 2008-08-12 at 13:29.
MoPhat is offline   Reply With Quote
Old 2008-08-12, 13:16   #2 (permalink)
MP Donator
 
MoPhat's Avatar
 
Join Date: Jun 2007
Location: Berg
Age: 35
Posts: 722
Thanks: 7
Thanked 60 Times in 13 Posts

Country:

My System

Default

anyone?
MoPhat is offline   Reply With Quote
Reply

Bookmarks

Tags
manual, place, recording, table, written

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
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


All times are GMT +1. The time now is 10:59.


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