[mythtv-commits] Ticket #2454: --quick_run on myth.rebuilddatabase.pl fails, with simple solution.
MythTV
mythtv at cvs.mythtv.org
Sun Sep 24 08:12:44 UTC 2006
#2454: --quick_run on myth.rebuilddatabase.pl fails, with simple solution.
--------------------+-------------------------------------------------------
Reporter: red321 | Owner: ijr
Type: defect | Status: new
Priority: minor | Milestone: unknown
Component: mythtv | Version: 0.20
Severity: medium |
--------------------+-------------------------------------------------------
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
--
Ticket URL: <http://cvs.mythtv.org/trac/ticket/2454>
MythTV <http://www.mythtv.org/>
MythTV
More information about the mythtv-commits
mailing list