[mythtv-commits] Ticket #9389: MythArchive and Project-X: cutlist translation

MythTV noreply at mythtv.org
Sat Dec 18 09:13:51 UTC 2010


#9389: MythArchive and Project-X: cutlist translation
------------------------------+----------------------------------
 Reporter:  J.Pilk@…          |           Type:  Bug Report
   Status:  new               |       Priority:  minor
Milestone:  unknown           |      Component:  MythTV - General
  Version:  Unspecified       |       Severity:  medium
 Keywords:                    |  Ticket locked:  0
------------------------------+----------------------------------
 Something, presumably a subtle change in DB schema for 0.24, has broken
 the code in MythArchive that translates a Myth cutlist into one suitable
 for use by Project-X.  I think I know what's wrong, but I'm not fluent in
 Python and it would be better if it was recoded by someone else.

 Project-X requires a single cutlist in which all transition points are
 listed in sequence, with the first being a cut-in.  MythTV stores cut-in
 and cut-out points separately, but an ordered merged list can be produced,
 as can ordered lists of each type.  If the first element in the merged
 list is the same as the first element in the cut-out list, that element is
 a cut-out and must be the second in the list passed to Project-X.  A
 leading zero must therefore be added to the merged list.

 In mythburn.py the elements in the list are framecounts.  In the
 mythcutprojectx script (wiki) they are bytecounts.  The same arguments
 apply to both.  I don't really speak bash either!

 I've mentioned this in several places, most recently in #9377, but it's
 really a separate issue.

 ##################################  \\
 #list1 shows cut-out points.  In 0.23 fixes an initial zero here is a cut-
 in. \\
 list1=`echo "select mark from recordedmarkup
 where chanid=$chanid and starttime='$starttime' and type=1 order by mark;"
 |  \\
 mysql -N -u mythtv  -p$PASSWD mythconverg `  \\
 ##################################   \\
 # and this gives the merged list   \\
 list=`echo "select mark from recordedmarkup where chanid=$chanid and
 starttime='$starttime' and type in (0,1) order by mark;" |  \\
 mysql -N -u mythtv  -p$PASSWD mythconverg `  \\
 ####################################  \\

-- 
Ticket URL: <http://code.mythtv.org/trac/ticket/9389>
MythTV <http://code.mythtv.org/trac>
MythTV Media Center


More information about the mythtv-commits mailing list