Opened 6 years ago
Closed 6 years ago
Last modified 6 years ago
#13625 closed Patch - Bug Fix (fixed)
Insure mythfilldatabase issues reschedule even if --no-mark-repeats is given
| Reported by: | Gary Buhrmaster | Owned by: | gigem |
|---|---|---|---|
| Priority: | minor | Milestone: | 31.1 |
| Component: | MythTV - Mythfilldatabase | Version: | Master Head |
| Severity: | medium | Keywords: | |
| Cc: | Ticket locked: | no |
Description
Insure mythfilldatabase issues reschedule even if --no-mark-repeats is given
Ticket created by request of dev from oob discussion.
Mythfilldatabase currently skips the reschedule if the --no-mark-repeats command line option is given, even if other changes to the program database have occurred (which is likely for any real run with real data).
Mitigation: Don't use --no-mark-repeats (which is likely a very rare use case), or run a separate request (mythutil --resched) to force a reschedule after running mythfilldatabase with --no-mark-repeats.
Lightly tested proposed patch follows:
diff --git a/mythtv/programs/mythfilldatabase/main.cpp b/mythtv/programs/mythfilldatabase/main.cpp
index aa6c33ace2..dba30522f8 100644
--- a/mythtv/programs/mythfilldatabase/main.cpp
+++ b/mythtv/programs/mythfilldatabase/main.cpp
@@ -660,9 +660,8 @@ int main(int argc, char *argv[])
"| the master backend is restarted. |\n"
"===============================================================");
- if (mark_repeats)
- ScheduledRecording::RescheduleMatch(0, 0, 0, QDateTime(),
- "MythFillDatabase");
+ ScheduledRecording::RescheduleMatch(0, 0, 0, QDateTime(),
+ "MythFillDatabase");
gCoreContext->SendMessage("CLEAR_SETTINGS_CACHE");
