diff options
Diffstat (limited to 'modules/localplay/mpd.controller.php')
-rw-r--r-- | modules/localplay/mpd.controller.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/localplay/mpd.controller.php b/modules/localplay/mpd.controller.php index c31a020b..c002d299 100644 --- a/modules/localplay/mpd.controller.php +++ b/modules/localplay/mpd.controller.php @@ -345,7 +345,7 @@ class AmpacheMpd { /* If we don't know it, look up by filename */ if (!$song->title) { $filename = sql_escape($entry['file']); - $sql = "SELECT id FROM song WHERE file = '$filename'"; + $sql = "SELECT id FROM song WHERE file LIKE '%$filename'"; $db_results = mysql_query($sql, dbh()); if ($r = mysql_fetch_assoc($db_results)) { $song = new Song($r['id']); |