Ticket #1731: mythtv-mythfilldatabase-do_channel_updates.patch

File mythtv-mythfilldatabase-do_channel_updates.patch, 1.5 KB (added by sphery <mtdean@…>, 18 years ago)
  • programs/mythfilldatabase/filldata.cpp

     
    821821
    822822    DataDirectProcessor::UpdateChannelsSafe(source.id, insert_channels);
    823823
    824     //  User must pass "--do_channel_update" for these updates
     824    //  User must pass "--do-channel-updates" for these updates
    825825    if (channel_updates)
    826826        DataDirectProcessor::UpdateChannelsUnsafe(source.id);
    827827    // TODO delete any channels which no longer exist in listings source
     
    33693369                 cout << "### reading channels from xawtv configfile\n";
    33703370            from_xawfile = true;
    33713371        }
    3372         else if (!strcmp(a.argv()[argpos], "--do_channel_updates"))
     3372        else if ((!strcmp(a.argv()[argpos], "--do-channel-updates")) ||
     3373                 (!strcmp(a.argv()[argpos], "--do_channel_updates")))
    33733374        {
    33743375            channel_updates = true;
    33753376        }
     
    35753576            cout << "   <sourceid>    = cardinput\n";
    35763577            cout << "   <xawtvrcfile> = file to read\n";
    35773578            cout << "\n";
    3578             cout << "--do_channel_updates\n";
     3579            cout << "--do-channel-updates\n";
    35793580            cout << "   When using DataDirect, ask mythfilldatabase to\n";
    35803581            cout << "   overwrite channel names, frequencies, etc. with the\n";
    35813582            cout << "   values available from the data source. This will \n";