Ticket #3135: mythweb_music_path.patch
| File mythweb_music_path.patch, 920 bytes (added by lyricnz, 5 years ago) |
|---|
-
mythplugins/mythweb/modules/music/mp3act_playstream.php
21 21 22 22 function streamPlay($id) 23 23 { 24 $query = 'SELECT mt.artist_name, ms.name, m s.filename '.24 $query = 'SELECT mt.artist_name, ms.name, md.path, ms.filename '. 25 25 'FROM music_songs AS ms '. 26 26 'LEFT JOIN music_artists AS mt ON ms.artist_id=mt.artist_id '. 27 'LEFT JOIN music_directories AS md ON ms.directory_id=md.directory_id '. 27 28 'WHERE ms.song_id='.mysql_real_escape_string($id); 28 29 29 30 $result = mysql_query($query); … … 40 41 exit; 41 42 } 42 43 43 $filename = 'data/music/'.$row[' filename'];44 $filename = 'data/music/'.$row['path'].'/'.$row['filename']; 44 45 45 46 switch (substr($filename, -3)) 46 47 {
