[mythtv-commits] Ticket #8786: Mythweb video sorting
MythTV
mythtv at cvs.mythtv.org
Sun Aug 15 20:36:26 UTC 2010
#8786: Mythweb video sorting
-----------------------------------------+----------------------------------
Reporter: patrickdk@… | Owner: kormoc
Type: enhancement | Status: new
Priority: trivial | Milestone: unknown
Component: Plugin - MythWeb | Version: Trunk Head
Severity: low | Keywords: mythweb sort episode
Ticket locked: 0 |
-----------------------------------------+----------------------------------
I don't get why you have the database sort, then call a php function to
sort it, seems like a duplicate of effort. It also causes tv episodes to
be really out of order.
I am not sure how you want to handle this officially, but just commenting
out the php sort function, and adding season and episode below to mysql
sort causes it to be fixed and works nice for me.
Changed: ORDER BY title
to: ORDER BY title,season,episode
$sh = $db->query('
SELECT videometadata.intid
FROM videometadata
LEFT JOIN videometadatagenre
ON videometadata.intid = videometadatagenre.idvideo
' . $where . '
GROUP BY intid
ORDER BY title,season,episode');
while ($intid = $sh->fetch_col()) {
$All_Videos[] = new Video($intid);
}
$sh->finish();
// if (count($All_Videos))
// sort_programs($All_Videos, 'video_sortby');
--
Ticket URL: <http://svn.mythtv.org/trac/ticket/8786>
MythTV <http://www.mythtv.org/>
MythTV
More information about the mythtv-commits
mailing list