Ticket #170: mythtv.filldatabase.refreshall.diff
File mythtv.filldatabase.refreshall.diff, 2.7 KB (added by , 19 years ago) |
---|
-
programs/mythfilldatabase/filldata.cpp
49 49 bool refresh_today = false; 50 50 bool refresh_tomorrow = true; 51 51 bool refresh_second = false; 52 bool refresh_all = false; 52 53 bool refresh_tba = true; 53 54 bool dd_grab_all = false; 54 55 bool dddataretrieved = false; … … 2828 2829 if (maxDays == 1) 2829 2830 refresh_today = true; 2830 2831 2831 if (refresh_today )2832 if (refresh_today || refresh_all) 2832 2833 { 2833 2834 if (!quiet) 2834 2835 cout << "Refreshing Today's data" << endl; … … 2836 2837 ++failures; 2837 2838 } 2838 2839 2839 if (refresh_tomorrow )2840 if (refresh_tomorrow || refresh_all) 2840 2841 { 2841 2842 if (!quiet) 2842 2843 cout << "Refreshing Tomorrow's data" << endl; … … 2844 2845 ++failures; 2845 2846 } 2846 2847 2847 if (refresh_second )2848 if (refresh_second || refresh_all) 2848 2849 { 2849 2850 if (!quiet) 2850 2851 cout << "Refreshing data for 2 days from today" << endl; … … 2894 2895 2895 2896 // Check to see if we already downloaded data for this date 2896 2897 bool download_needed = false; 2898 2899 if (refresh_all) 2900 download_needed = true; 2901 2897 2902 QString date(qCurrentDate.addDays(i).toString()); 2898 2903 2899 2904 if (!chancnt) … … 3324 3329 { 3325 3330 refresh_second = true; 3326 3331 } 3332 else if (!strcmp(a.argv()[argpos], "--refresh-all")) 3333 { 3334 refresh_all = true; 3335 } 3327 3336 else if (!strcmp(a.argv()[argpos], "--dont-refresh-tba")) 3328 3337 { 3329 3338 refresh_tba = false; … … 3467 3476 cout << " for the grabber to check for future listings\n"; 3468 3477 cout << "--refresh-today\n"; 3469 3478 cout << "--refresh-second\n"; 3479 cout << "--refresh-all\n"; 3470 3480 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"; 3472 3483 cout << "--dont-refresh-tomorrow\n"; 3473 3484 cout << " Tomorrow will be refreshed always unless this argument is used\n"; 3474 3485 cout << "--dont-refresh-tba\n"; … … 3739 3750 3740 3751 return FILLDB_EXIT_OK; 3741 3752 } 3753 3754 /* vim: set expandtab tabstop=4 shiftwidth=4: */