Ticket #5869: free_scheduling_channel_blacklist.diff

File free_scheduling_channel_blacklist.diff, 8.7 KB (added by Wolfgang <mythtv@…>, 15 years ago)
  • i18n/mythfrontend_de.ts

     
    73707370        <translation>es war markiert als &quot;Niemals aufnehmen&quot;.</translation>
    73717371    </message>
    73727372    <message>
     7373        <source>A</source>
     7374        <comment>RecStatusChar rsNotAllowed</comment>
     7375        <translation>A</translation>
     7376    </message>
     7377    <message>
     7378        <source>Not Allowed</source>
     7379        <translation>Nicht erlaubt</translation>
     7380    </message>
     7381    <message>
     7382        <source>this recording is not allowed on this channel.</source>
     7383        <translation>diese Aufnahme ist auf diesem Kanal nicht erlaubt.</translation>
     7384    </message>
     7385    <message>
    73737386        <source>Channel Separator</source>
    73747387        <translation type="obsolete">Trennzeichen fÃŒr Sender (bei ATSC)</translation>
    73757388    </message>
  • libs/libmythtv/programinfo.h

     
    129129    rsInactive = 10,
    130130    rsNeverRecord = 11,
    131131    rsOffLine = 12,
    132     rsOtherShowing = 13
     132    rsOtherShowing = 13,
     133    rsNotAllowed = 14
    133134};
    134135
    135136enum AvailableStatusType {
  • libs/libmythtv/programinfo.cpp

     
    32983298        return QObject::tr("F", "RecStatusChar rsOffLine");
    32993299    case rsOtherShowing:
    33003300        return QObject::tr("O", "RecStatusChar rsOtherShowing");
     3301    case rsNotAllowed:
     3302        return QObject::tr("A", "RecStatusChar rsNotAllowed");
    33013303    default:
    33023304        return "-";
    33033305    }
     
    33583360            return QObject::tr("Recorder Off-Line");
    33593361        case rsOtherShowing:
    33603362            return QObject::tr("Other Showing");
     3363        case rsNotAllowed:
     3364            return QObject::tr("Not Allowed");
    33613365        default:
    33623366            return QObject::tr("Unknown");
    33633367        }
     
    34713475            message += QObject::tr("this episode will be recorded on a "
    34723476                                   "different channel in this time slot.");
    34733477            break;
     3478        case rsNotAllowed:
     3479            message += QObject::tr("this recording is not allowed on this channel.");
     3480            break;           
    34743481        default:
    34753482            message += QObject::tr("you should never see this.");
    34763483            break;
     
    45914598             recstatus == rsEarlierShowing ||
    45924599             recstatus == rsOtherShowing ||
    45934600             recstatus == rsNeverRecord ||
     4601             recstatus == rsNotAllowed ||
    45944602             recstatus == rsRepeat ||
    45954603             recstatus == rsInactive ||
    45964604             recstatus == rsLaterShowing))
     
    46104618                recstatus != rsPreviousRecording &&
    46114619                recstatus != rsCurrentRecording &&
    46124620                recstatus != rsNeverRecord &&
     4621                recstatus != rsNotAllowed &&
    46134622                recstatus != rsNotListed)
    46144623            {
    46154624                if (recstartts > now)
  • programs/mythbackend/scheduler.cpp

     
    27982798"RECTABLE.dupin, "
    27992799"recduplicate, "
    28002800"findduplicate, "
    2801 "RECTABLE.type, RECTABLE.recordid, "
     2801"RECTABLE.type, RECTABLE.recordid, RECTABLE.search, "
    28022802"program.starttime - INTERVAL RECTABLE.startoffset minute AS recstartts, "
    28032803"program.endtime + INTERVAL RECTABLE.endoffset minute AS recendts, "
    28042804"program.previouslyshown, RECTABLE.recgroup, RECTABLE.dupmethod, "
     
    28542854    while (result.next())
    28552855    {
    28562856        ProgramInfo *p = new ProgramInfo;
    2857         p->reactivate = result.value(38).toInt();
    2858         p->oldrecstatus = RecStatusType(result.value(37).toInt());
     2857        p->reactivate = result.value(39).toInt();
     2858        p->oldrecstatus = RecStatusType(result.value(38).toInt());
    28592859        if (p->oldrecstatus == rsAborted || p->reactivate)
    28602860            p->recstatus = rsUnknown;
    28612861        else
     
    28742874        p->category = result.value(11).toString();
    28752875        p->recpriority = result.value(12).toInt();
    28762876        p->dupin = RecordingDupInType(result.value(13).toInt());
    2877         p->dupmethod = RecordingDupMethodType(result.value(22).toInt());
     2877        p->dupmethod = RecordingDupMethodType(result.value(23).toInt());
    28782878        p->rectype = RecordingType(result.value(16).toInt());
    28792879        p->recordid = result.value(17).toInt();
    28802880
    2881         p->recstartts = result.value(18).toDateTime();
    2882         p->recendts = result.value(19).toDateTime();
    2883         p->repeat = result.value(20).toInt();
    2884         p->recgroup = result.value(21).toString();
    2885         p->storagegroup = result.value(42).toString();
    2886         p->playgroup = result.value(36).toString();
    2887         p->chancommfree = COMM_DETECT_COMMFREE == result.value(23).toInt();
    2888         p->hostname = result.value(43).toString();
    2889         p->cardid = result.value(24).toInt();
    2890         p->inputid = result.value(25).toInt();
    2891         p->shareable = result.value(26).toInt();
    2892         p->seriesid = result.value(27).toString();
    2893         p->programid = result.value(28).toString();
    2894         p->catType = result.value(29).toString();
    2895         p->year = result.value(30).toString();
    2896         p->stars =  result.value(31).toDouble();
     2881        p->recstartts = result.value(19).toDateTime();
     2882        p->recendts = result.value(20).toDateTime();
     2883        p->repeat = result.value(21).toInt();
     2884        p->recgroup = result.value(22).toString();
     2885        p->storagegroup = result.value(43).toString();
     2886        p->playgroup = result.value(37).toString();
     2887        p->chancommfree = COMM_DETECT_COMMFREE == result.value(24).toInt();
     2888        p->hostname = result.value(44).toString();
     2889        p->cardid = result.value(25).toInt();
     2890        p->inputid = result.value(26).toInt();
     2891        p->shareable = result.value(27).toInt();
     2892        p->seriesid = result.value(28).toString();
     2893        p->programid = result.value(29).toString();
     2894        p->catType = result.value(30).toString();
     2895        p->year = result.value(31).toString();
     2896        p->stars =  result.value(32).toDouble();
    28972897
    2898         if (result.value(32).isNull())
     2898        if (result.value(33).isNull())
    28992899        {
    29002900            p->originalAirDate = QDate (0, 1, 1);
    29012901            p->hasAirDate = false;
    29022902        }
    29032903        else
    29042904        {
    2905             p->originalAirDate = QDate::fromString(result.value(32).toString(), Qt::ISODate);
     2905            p->originalAirDate = QDate::fromString(result.value(33).toString(), Qt::ISODate);
    29062906            p->hasAirDate = true;
    29072907        }
    29082908
    2909         bool inactive = result.value(33).toInt();
    2910         p->parentid = result.value(34).toInt();
    2911         p->findid = result.value(35).toInt();
     2909        bool inactive = result.value(34).toInt();
     2910        p->parentid = result.value(35).toInt();
     2911        p->findid = result.value(36).toInt();
    29122912
    29132913
    2914         p->videoproperties = result.value(39).toInt();
    2915         p->subtitleType = result.value(40).toInt();
    2916         p->audioproperties = result.value(41).toInt();
     2914        p->videoproperties = result.value(40).toInt();
     2915        p->subtitleType = result.value(41).toInt();
     2916        p->audioproperties = result.value(42).toInt();
    29172917
    29182918        if (!recTypeRecPriorityMap.contains(p->rectype))
    29192919            recTypeRecPriorityMap[p->rectype] =
     
    29222922
    29232923        if (autopriority)
    29242924            p->recpriority += autopriority -
    2925                               (result.value(45).toInt() * autostrata / 200);
     2925                              (result.value(46).toInt() * autostrata / 200);
    29262926
    2927         p->recpriority2 = result.value(46).toInt();
     2927        p->recpriority2 = result.value(47).toInt();
    29282928
    29292929        if (complexpriority == 0)
    29302930        {
     
    29702970        if ((threadrunning || specsched) && !cardMap.contains(p->cardid))
    29712971            p->recstatus = rsOffLine;
    29722972
     2973        // Check for rsNotAllowed
     2974        if (result.value(18).toInt() != kNoSearch && p->recpriority <= -500)
     2975            p->recstatus = rsNotAllowed;
     2976
    29732977        // Check for rsTooManyRecordings
    29742978        if (checkTooMany && tooManyMap[p->recordid] && !p->reactivate)
    29752979            p->recstatus = rsTooManyRecordings;
     
    29892993
    29902994            if ((p->dupin & kDupsInOldRecorded) && result.value(10).toInt())
    29912995            {
    2992                 if (result.value(44).toInt() == rsNeverRecord)
     2996                if (result.value(46).toInt() == rsNeverRecord)
    29932997                    p->recstatus = rsNeverRecord;
    29942998                else
    29952999                    p->recstatus = rsPreviousRecording;