Is this the place where the "manual" is written in the recording table? (1 Viewer)

MoPhat

Retired Team Member
  • Premium Supporter
  • June 17, 2007
    816
    226
    Berg
    Home Country
    Switzerland Switzerland
    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]      }
        }
    }

    Is the red marked line the code where writes the manual in the db instead the program name from the scheduler?

    thx
    MoPhat
     

    Users who are viewing this thread

    Top Bottom