CC-4393: Please ignore Flac items for Playlist Preview and disable to preview it as a single track

- fixed
This commit is contained in:
James 2012-09-13 14:22:13 -04:00
parent e95933525b
commit 2293fcda01
2 changed files with 2 additions and 1 deletions

View File

@ -184,6 +184,7 @@ class AudiopreviewController extends Zend_Controller_Action
'element_artist' => isset($track['artist_name'])?$track['artist_name']:"",
'element_id' => isset($track['id'])?$track['id']:"",
'element_position' => isset($track['position'])?$track['position']:"",
'mime' => isset($track['mime'])?$track['mime']:""
);
/* If the track type is static we know it must be

View File

@ -144,7 +144,7 @@ function buildplaylist(p_url, p_playIndex) {
mp3:data[index]['uri']
};
}
if (media) {
if (media && isAudioSupported(data[index]['mime'])) {
myPlaylist[index] = media;
}
// we should create a map according to the new position in the