[mythtv-commits] Ticket #3207: Formatting fixup for 'mythbackend --printsched'

MythTV mythtv at cvs.mythtv.org
Wed Mar 14 07:45:19 UTC 2007


#3207: Formatting fixup for 'mythbackend --printsched'
------------------------------------------------------+---------------------
 Reporter:  Nick Morrott <knowledgejunkie at gmail.com>  |       Owner:  ijr    
     Type:  patch                                     |      Status:  new    
 Priority:  minor                                     |   Milestone:  unknown
Component:  mythtv                                    |     Version:  head   
 Severity:  medium                                    |  
------------------------------------------------------+---------------------
 A formatting fixup for the --printsched console output. ChID was not
 justified causing all sorts of issues with alignment of subsequent column
 headings and data, making the information very hard to read quickly.

 This patch aligns all data, and adds a new column of CallSign.

 Example output pre-patch:


 {{{
 --- print list start ---
 Title - Subtitle                    Chan ChID Day Start  End   C I  T N
 Pri
 Working Lunch                        102 76  14 13:30-14:00  1 1  C 1
 10/0
 F1: Chasing the Dream                117 125  14 19:00-20:00  1 1  A 1
 6/0
 Forbidden Planet                     419 4026  14 19:05-21:00  4 4  F 4
 15/0
 Relocation, Relocation Revisited     104 84  14 20:00-21:00  0 0  A P
 10/0
 The Daily Show with Jon Stewart      142 124  14 20:31-20:59  1 1  A 1
 3/0
 Law and Order - "Cruel and Unusual"  190 4019  14 20:59-21:59  0 0  O X
 17/0
 }}}



 Example output post-patch:


 {{{
 --- print list start ---
 Title - Subtitle                    Chan ChID CallSign Day Start  End   C
 I  T N   Pri
 Working Lunch                        102   76 BBC2      14 13:30-14:00  1
 1  C 1  10/0
 F1: Chasing the Dream                117  125 ITV4      14 19:00-20:00  1
 1  A 1   6/0
 Forbidden Planet                     419 4026 TCM       14 19:05-21:00  4
 4  F 4  15/0
 Relocation, Relocation Revisited     104   84 CH4       14 20:00-21:00  0
 0  A P  10/0
 The Daily Show with Jon Stewart      142  124 MORE4     14 20:31-20:59  1
 1  A 1   3/0
 Law and Order - "Cruel and Unusual"  190 4019 HALLMK    14 20:59-21:59  0
 0  O X  17/0
 }}}

 Feedback most welcome,
 Nick

-- 
Ticket URL: <http://svn.mythtv.org/trac/ticket/3207>
MythTV <http://svn.mythtv.org/trac>
MythTV


More information about the mythtv-commits mailing list