[mythtv-commits] Ticket #11893: Sorting by Season/Episode fails for series with seasons > 9

MythTV noreply at mythtv.org
Sun Oct 6 07:37:36 UTC 2013


#11893: Sorting by Season/Episode fails for series with seasons > 9
----------------------------------+---------------------
     Reporter:  OrcusMaximus@…    |      Owner:  kormoc
         Type:  Patch - Bug Fix   |     Status:  new
     Priority:  minor             |  Milestone:  unknown
    Component:  Plugin - MythWeb  |    Version:  0.26
     Severity:  low               |   Keywords:
Ticket locked:  0                 |
----------------------------------+---------------------
 Fix in includes/sorting.php

  $ diff sorting.php sorting.php.orig
 149,150c149,150
 <         $asep = sprintf("%02dx%03d", $a->season, $a->episode);
 <         $bsep = sprintf("%02dx%03d", $b->season, $b->episode);
 ---
 >         $asep = $a->season.'x'.str_pad($a->episode,2,"0",STR_PAD_LEFT);
 >         $bsep = $b->season.'x'.str_pad($b->episode,2,"0",STR_PAD_LEFT);

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


More information about the mythtv-commits mailing list