Ticket #1520: mythtv-mythfilldatabase-remove_new_channels.patch
File mythtv-mythfilldatabase-remove_new_channels.patch, 2.2 KB (added by , 18 years ago) |
---|
-
programs/mythfilldatabase/filldata.cpp
64 64 bool mark_repeats = true; 65 65 bool channel_updates = false; 66 66 bool channel_update_run = false; 67 bool remove_new_channels = false; 67 68 bool only_update_channels = false; 68 69 bool need_post_grab_proc = true; 69 70 QString logged_in = ""; … … 817 818 818 819 bool insert_channels = channel_updates; 819 820 if (!insert_channels) 820 insert_channels = SourceUtil::IsAnalog(source.id); 821 insert_channels = (SourceUtil::IsAnalog(source.id) && 822 !remove_new_channels); 821 823 822 824 DataDirectProcessor::UpdateChannelsSafe(source.id, insert_channels); 823 825 … … 3373 3375 { 3374 3376 channel_updates = true; 3375 3377 } 3378 else if (!strcmp(a.argv()[argpos], "--remove-new-channels")) 3379 { 3380 remove_new_channels = true; 3381 } 3376 3382 else if (!strcmp(a.argv()[argpos], "--graboptions")) 3377 3383 { 3378 3384 if (((argpos + 1) >= a.argc())) … … 3582 3588 cout << " override custom channel names, which is why it is\n"; 3583 3589 cout << " off by default.\n"; 3584 3590 cout << "\n"; 3591 cout << "--remove-new-channels\n"; 3592 cout << " When using DataDirect, ask mythfilldatabase to\n"; 3593 cout << " remove new channels (those not in the database)\n"; 3594 cout << " from the DataDirect lineup. These channels are\n"; 3595 cout << " removed from the lineup as if you had done so\n"; 3596 cout << " via the DataDirect website's Lineup Wizard, but\n"; 3597 cout << " may be re-added manually and incorporated into\n"; 3598 cout << " MythTV by running mythfilldatabase without this\n"; 3599 cout << " option. New channels are automatically removed\n"; 3600 cout << " for DVB and HDTV sources that use DataDirect.\n"; 3601 cout << "\n"; 3585 3602 cout << "--graboptions <\"options\">\n"; 3586 3603 cout << " Pass options to grabber\n"; 3587 3604 cout << "\n";