[mythtv-commits] Ticket #1740: code around perl database warnings in myth.rebuilddatabase.pl
MythTV
mythtv at cvs.mythtv.org
Sun May 21 20:54:57 EDT 2006
#1740: code around perl database warnings in myth.rebuilddatabase.pl
-----------------------------+----------------------------------------------
Reporter: gnassas at mac.com | Owner: ijr
Type: patch | Status: new
Priority: minor | Milestone: 0.20
Component: mythtv | Version: head
Severity: medium | Resolution:
-----------------------------+----------------------------------------------
Comment (by gnassas at mac.com):
A new patch follows with further improvements based on comments from Otto
Kolsi:
{{{
DB does not accept null values into the time columns. If user does not
give starttime, script should either use current time or take file
timestamp and use that. It might suggest one of these values by default.
If 24-hour clock is used and user gives program length in minutes,
script inserts endtime in 12-hour format to the DB. So that 60min
program starts 21:00 and ends 10:00. Not sure if frontend cares about
this but mythweb does not show these programs at all.
Changing time format from HH:mm.. to hh:mm.. in the only time_format()
call (time_format("yyyy-mm{on}-dd HH:mm{in}:ss" ...) fixes this issue
for me. Not sure if this is okay for 12-hour users.
}}}
sorry about the HH/hh 12/24 hour thing, I was looking at the manpage as I
coded that and still picked the wrong one :/
With this update a reasonable default is chosen for program title so it's
possible to run the script with no input and get acceptable results.
--
Ticket URL: <http://cvs.mythtv.org/trac/ticket/1740>
MythTV <http://www.mythtv.org/>
MythTV
More information about the mythtv-commits
mailing list