Ticket #170: mythtv.filldatabase.refreshall.diff

File mythtv.filldatabase.refreshall.diff, 2.7 KB (added by Robert Tsai <rtsai1111>, 19 years ago)
  • programs/mythfilldatabase/filldata.cpp

     
    4949bool refresh_today = false;
    5050bool refresh_tomorrow = true;
    5151bool refresh_second = false;
     52bool refresh_all = false;
    5253bool refresh_tba = true;
    5354bool dd_grab_all = false;
    5455bool dddataretrieved = false;
     
    28282829            if (maxDays == 1)
    28292830                refresh_today = true;
    28302831
    2831             if (refresh_today)
     2832            if (refresh_today || refresh_all)
    28322833            {
    28332834                if (!quiet)
    28342835                    cout << "Refreshing Today's data" << endl;
     
    28362837                    ++failures;
    28372838            }
    28382839
    2839             if (refresh_tomorrow)
     2840            if (refresh_tomorrow || refresh_all)
    28402841            {
    28412842                if (!quiet)
    28422843                    cout << "Refreshing Tomorrow's data" << endl;
     
    28442845                    ++failures;
    28452846            }
    28462847
    2847             if (refresh_second)
     2848            if (refresh_second || refresh_all)
    28482849            {
    28492850                if (!quiet)
    28502851                    cout << "Refreshing data for 2 days from today" << endl;
     
    28942895
    28952896                // Check to see if we already downloaded data for this date
    28962897                bool download_needed = false;
     2898
     2899                if (refresh_all)
     2900                    download_needed = true;
     2901
    28972902                QString date(qCurrentDate.addDays(i).toString());
    28982903
    28992904                if (!chancnt)
     
    33243329        {
    33253330            refresh_second = true;
    33263331        }
     3332        else if (!strcmp(a.argv()[argpos], "--refresh-all"))
     3333        {
     3334            refresh_all = true;
     3335        }
    33273336        else if (!strcmp(a.argv()[argpos], "--dont-refresh-tba"))
    33283337        {
    33293338            refresh_tba = false;
     
    34673476            cout << "   for the grabber to check for future listings\n";
    34683477            cout << "--refresh-today\n";
    34693478            cout << "--refresh-second\n";
     3479            cout << "--refresh-all\n";
    34703480            cout << "   (Only valid for grabbers: na, se_swedb, no, ee, de_tvtoday)\n";
    3471             cout << "   Force a refresh today or two days from now, to catch the latest changes\n";
     3481            cout << "   Force a refresh today or two days (or every day) from now,\n";
     3482            cout << "   to catch the latest changes\n";
    34723483            cout << "--dont-refresh-tomorrow\n";
    34733484            cout << "   Tomorrow will be refreshed always unless this argument is used\n";
    34743485            cout << "--dont-refresh-tba\n";
     
    37393750
    37403751    return FILLDB_EXIT_OK;
    37413752}
     3753
     3754/* vim: set expandtab tabstop=4 shiftwidth=4: */