Skip to content

Commit

Permalink
Remove deprecated mythfilldatabase command line arguments.
Browse files Browse the repository at this point in the history
The following were deprecated in 2011 and are now removed:

    --refresh-today
    --dont-refresh-tomorrow
    --refresh-second
    --refresh-day
    --refresh-all
  • Loading branch information
linuxdude42 committed May 31, 2023
1 parent 8fab18c commit b54e9eb
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 45 deletions.
19 changes: 0 additions & 19 deletions mythtv/programs/mythfilldatabase/mythfilldatabase.cpp
Expand Up @@ -155,25 +155,6 @@ int main(int argc, char *argv[])
fill_data.SetRefresh(0, true);
}

if (cmdline.toBool("refreshtoday"))
cmdline.SetValue("refresh",
cmdline.toStringList("refresh") << "today");
if (cmdline.toBool("dontrefreshtomorrow"))
cmdline.SetValue("refresh",
cmdline.toStringList("refresh") << "nottomorrow");
if (cmdline.toBool("refreshsecond"))
cmdline.SetValue("refresh",
cmdline.toStringList("refresh") << "second");
if (cmdline.toBool("refreshall"))
cmdline.SetValue("refresh",
cmdline.toStringList("refresh") << "all");
if (cmdline.toBool("refreshday"))
{
cmdline.SetValue("refresh",
cmdline.toStringList("refresh") <<
cmdline.toStringList("refreshday"));
}

QStringList sl = cmdline.toStringList("refresh");
if (!sl.isEmpty())
{
Expand Down
Expand Up @@ -99,30 +99,18 @@ void MythFillDatabaseCommandLineParser::LoadArguments(void)
"for the guide data grabber to check for future "
"listings.")
->SetGroup("Filtering");
add("--refresh-today", "refreshtoday", false, "",
"This option is only valid for selected grabbers.\n"
"Force a refresh for today's guide data.\nThis can be used "
"in combination with other --refresh-<n> options.")
->SetDeprecated("use --refresh instead")
add("--refresh-today", "refreshtoday", false, "", "")
->SetRemoved("use --refresh instead", "34")

->SetGroup("Filtering");
add("--dont-refresh-tomorrow", "dontrefreshtomorrow", false, "",
"This option is only valid for selected grabbers.\n"
"Prevent mythfilldatabase from pulling information for "
"tomorrow's listings. Data for tomorrow is always pulled "
"unless specifically specified otherwise.")
->SetDeprecated("use --refresh instead")
add("--dont-refresh-tomorrow", "dontrefreshtomorrow", false, "", "")
->SetRemoved("use --refresh instead", "34")
->SetGroup("Filtering");
add("--refresh-second", "refreshsecond", false, "",
"This option is only valid for selected grabbers.\n"
"Force a refresh for guide data two days from now. This can "
"be used in combination with other --refresh-<n> options.")
->SetDeprecated("use --refresh instead")
add("--refresh-second", "refreshsecond", false, "", "")
->SetRemoved("use --refresh instead", "34")
->SetGroup("Filtering");
add("--refresh-day", "refreshday", QMetaType::QStringList, "",
"This option is only valid for selected grabbers.\n"
"Force a refresh for guide data on a specific day. This can "
"be used in combination with other --refresh-<n> options.")
->SetDeprecated("use --refresh instead")
add("--refresh-day", "refreshday", QMetaType::QStringList, "", "")
->SetRemoved("use --refresh instead", "34")
->SetGroup("Filtering");
add("--dont-refresh-tba", "dontrefreshtba", false,
"don't refresh \"To be announced\" programs",
Expand All @@ -131,11 +119,8 @@ void MythFillDatabaseCommandLineParser::LoadArguments(void)
"programs marked as \"To be announced\".")
->SetGroup("Filtering");

add("--refresh-all", "refreshall", false, "",
"This option is only valid for selected grabbers.\n"
"This option forces a refresh of all guide data, but does so "
"with fourteen downloads of one day each.")
->SetDeprecated("use --refresh instead")
add("--refresh-all", "refreshall", false, "", "")
->SetRemoved("use --refresh instead", "34")
->SetBlocks("dontrefreshtomorrow")
->SetBlocks("refreshsecond")
->SetBlocks("refreshday")
Expand Down

0 comments on commit b54e9eb

Please sign in to comment.