Opened 18 years ago
Closed 18 years ago
#2454 closed defect (fixed)
--quick_run on myth.rebuilddatabase.pl fails, with simple solution.
Reported by: | red321 | Owned by: | Isaac Richards |
---|---|---|---|
Priority: | minor | Milestone: | unknown |
Component: | mythtv | Version: | 0.20 |
Severity: | medium | Keywords: | |
Cc: | Ticket locked: | no |
Description
if ($quick_run) {
print("QuickRun? defaults:\n"); print(" title: '$newtitle'\n"); print(" subtitle: '$newsubtitle'\n"); print(" description: '$newdescription'\n");
} else {
$channel = GetAnswer?("Enter channel", $channel); $newtitle = GetAnswer?("... title", $newtitle); $newsubtitle = GetAnswer?("... subtitle", $newsubtitle); $newdescription = GetAnswer?("Description", $newdescription); $starttime = GetAnswer?("... start time (YYYY-MM-DD HH:MM:SS)", $starttime);
if ($endtime) {
$duration = (str2time($endtime) - str2time($starttime)) / 60;
} else {
$duration = "60";
} $duration = GetAnswer?("... duration (in minutes)", $duration); $endtime = time_format("yyyy-mm{on}-dd hh:mm{in}:ss", str2time($starttime) + $duration * 60);
Brackets are in the wrong place, so quick_run misses setting endtime, and the script fails.
Change to: 358a359
}
369d369 < }
diff
(In [11325]) Fix --quick-run, Closes #2454.