﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	severity	resolution	keywords	cc	mlocked
13625	Insure mythfilldatabase issues reschedule even if --no-mark-repeats is given	Gary Buhrmaster	gigem	"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"");

}}}"	Patch - Bug Fix	closed	minor	31.1	MythTV - Mythfilldatabase	Master Head	medium	fixed			0
