Ticket #2344: mfdb_preset_fix.diff

File mfdb_preset_fix.diff, 5.7 KB (added by Janne <janne-mythtv@…>, 18 years ago)
  • programs/mythfilldatabase/filldata.cpp

    old new void handleChannels(int id, QValueList<C 
    20752075        }
    20762076        else
    20772077        {
    2078             int major, minor, freqid = (*i).freqid.toInt();
     2078            int major, minor;
    20792079            long long freq;
    2080             get_atsc_stuff((*i).chanstr, id, freqid, major, minor, freq);
     2080            get_atsc_stuff((*i).chanstr, id, (*i).freqid.toInt(), major, minor, freq);
    20812081
    20822082            if (interactive && ((minor == 0) || (freq > 0)))
    20832083            {
    void handleChannels(int id, QValueList<C 
    20882088                cout << "### callsign = " << (*i).callsign.local8Bit() << endl;
    20892089                cout << "### channum  = " << (*i).chanstr.local8Bit()  << endl;
    20902090                if (channel_preset)
    2091                     cout << "### freqid   = " << freqid                << endl;
     2091                    cout << "### freqid   = " << (*i).freqid.local8Bit() << endl;
    20922092                cout << "### finetune = " << (*i).finetune.local8Bit() << endl;
    20932093                cout << "### tvformat = " << (*i).tvformat.local8Bit() << endl;
    20942094                cout << "### icon     = " << localfile.local8Bit()     << endl;
    void handleChannels(int id, QValueList<C 
    21112111                        0 /*service id*/, major,            minor,
    21122112                        false /*use on air guide*/, false /*hidden*/,
    21132113                        false /*hidden in guide*/,
    2114                         freqid,           localfile,        (*i).tvformat,
     2114                        (*i).freqid,      localfile,        (*i).tvformat,
    21152115                        (*i).xmltvid))
    21162116                {
    21172117                    cout << "### " << endl;
    void handleChannels(int id, QValueList<C 
    21682168                        0 /*service id*/, major,     minor,
    21692169                        false /*use on air guide*/,  false /*hidden*/,
    21702170                        false /*hidden in guide*/,
    2171                         freqid,      localfile, (*i).tvformat,
     2171                        (*i).freqid,      localfile, (*i).tvformat,
    21722172                        (*i).xmltvid);
    21732173                }
    21742174            }
  • libs/libmythtv/channelutil.cpp

    old new bool ChannelUtil::CreateChannel(uint db_ 
    10081008                                bool use_on_air_guide,
    10091009                                bool hidden,
    10101010                                bool hidden_in_guide,
    1011                                 int freqid,
     1011                                QString freqid,
    10121012                                QString icon,
    10131013                                QString format,
    10141014                                QString xmltvid)
    bool ChannelUtil::CreateChannel(uint db_ 
    10481048    query.bindValue(":VISIBLE",   !hidden);
    10491049    (void) hidden_in_guide; // MythTV can't hide the channel in just the guide.
    10501050
    1051     if (freqid > 0)
     1051    if (!freqid.isEmpty())
    10521052        query.bindValue(":FREQID",    freqid);
    10531053
    10541054    QString tvformat = (atsc_minor_channel > 0) ? "ATSC" : format;
  • libs/libmythtv/channelutil.h

    old new class ChannelUtil 
    103103                                 bool use_on_air_guide,
    104104                                 bool hidden,
    105105                                 bool hidden_in_guide,
    106                                  int freqid,
     106                                 QString freqid,
    107107                                 QString icon    = "",
    108108                                 QString format  = "Default",
    109109                                 QString xmltvid = "");
  • libs/libmythtv/datadirect.cpp

    old new static void update_channel_basic(uint  
    18791879            callsign,  name,      channum,
    18801880            serviceid, majorC,    minorC,
    18811881            oag,       hidden,    hidden_in_guide,
    1882             freqid,    icon,      tvformat,
     1882            QString::number(freqid),    icon,      tvformat,
    18831883            xmltvid);
    18841884    }
    18851885}
  • libs/libmythtv/siscan.cpp

    old new void SIScan::UpdatePMTinDB( 
    10101010            chan_num,
    10111011            pmt->ProgramNumber(),
    10121012            0, 0,
    1013             false, false, false, freqid);
     1013            false, false, false, QString::number(freqid));
    10141014    }
    10151015    else
    10161016    {   // The service is in database, update it
    void SIScan::UpdateVCTinDB(int db_mplexi 
    11661166                    vct->MajorChannel(i), vct->MinorChannel(i),
    11671167                    !vct->IsHiddenInGuide(i) /* use on air guide */,
    11681168                    vct->IsHidden(i), vct->IsHiddenInGuide(i),
    1169                     freqid);
     1169                    QString::number(freqid));
    11701170            }
    11711171        }
    11721172        else
    void SIScan::UpdateSDTinDB(int /*mplexid 
    12871287                    sdt->HasEITSchedule(i) ||
    12881288                    sdt->HasEITPresentFollowing(i) ||
    12891289                    force_guide_present,
    1290                     false, false, -1);
     1290                    false, false, QString());
    12911291            }
    12921292        }
    12931293        else if (force_update || (desc && have_uk_chan_num))