[mythtv-commits] Ticket #4348: "Recently Played Songs" list in mythweb shows recently added songs as well
MythTV
mythtv at cvs.mythtv.org
Fri Dec 21 10:30:35 UTC 2007
#4348: "Recently Played Songs" list in mythweb shows recently added songs as well
----------------------------------------------+-----------------------------
Reporter: Ash Bostock <abostock at gmail.com> | Owner: xris
Type: patch | Status: new
Priority: minor | Milestone: unknown
Component: mythweb | Version: head
Severity: medium | Mlocked: 0
----------------------------------------------+-----------------------------
Due to bug #4345 the "Recently Played Songs" list in mythweb shows
recently added songs as well. Here's a quick fix...
{{{
Index: mythplugins/mythweb/modules/music/mp3act_functions.php
===================================================================
--- mythplugins/mythweb/modules/music/mp3act_functions.php (revision
15162)
+++ mythplugins/mythweb/modules/music/mp3act_functions.php (working
copy)
@@ -781,6 +781,7 @@
$query = 'SELECT ms.name, ms.song_id, mt.artist_name,
UNIX_TIMESTAMP(ms.lastplay) AS playdate '.
'FROM music_songs AS ms '.
'LEFT JOIN music_artists AS mt ON ms.artist_id=mt.artist_id '.
+ 'WHERE ms.numplays > 0 '.
'ORDER BY ms.lastplay DESC '.
'LIMIT 40';
$result = mysql_query($query);
}}}
--
Ticket URL: <http://svn.mythtv.org/trac/ticket/4348>
MythTV <http://svn.mythtv.org/trac>
MythTV
More information about the mythtv-commits
mailing list