Ticket #4972: mythweb-music-albumname.patch

File mythweb-music-albumname.patch, 1.1 KB (added by otto at kolsi dot fi, 12 years ago)
  • modules/music/mp3act_functions.php

     
    334334      $length = $row[1];
    335335
    336336      // Attempt to find some album art.
    337       $query='SELECT ms.filename, ms.album_id, md.path, ma.artist_name, ma.artist_id, ms.directory_id
     337      $query='SELECT ms.filename, ms.album_id, md.path, ma.artist_name, ma.artist_id, ms.directory_id, mal.album_name
    338338                FROM music_songs AS ms
    339339                     LEFT JOIN music_directories AS md
    340340                            ON ms.directory_id=md.directory_id
    341341                     LEFT JOIN music_artists AS ma
    342342                            ON ms.artist_id=ma.artist_id
    343                WHERE album_id='.$sql_itemid.'
     343                     LEFT JOIN music_albums AS mal
     344                            ON ms.album_id=mal.album_id
     345               WHERE ms.album_id='.$sql_itemid.'
    344346               LIMIT 1';
    345347      $result = mysql_query($query);
    346348      if (!$result)