summaryrefslogtreecommitdiffstats
path: root/apps/media/js/player.js
diff options
context:
space:
mode:
Diffstat (limited to 'apps/media/js/player.js')
-rw-r--r--apps/media/js/player.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/apps/media/js/player.js b/apps/media/js/player.js
index 0b0502c7780..b3beed8c3b9 100644
--- a/apps/media/js/player.js
+++ b/apps/media/js/player.js
@@ -122,10 +122,10 @@ var PlayList={
PlayList.add(song,temp,true);
});
}
- if(song.song_name){
- var type=musicTypeFromFile(song.song_path);
- var item={name:song.song_name,type:type,artist:song.artist_name,album:song.album_name,length:song.song_length,playcount:song.song_playcount};
- item[type]=PlayList.urlBase+encodeURIComponent(song.song_path);
+ if(song.path){
+ var type=musicTypeFromFile(song.path);
+ var item={name:song.name,type:type,artist:song.artist,album:song.album,length:song.length,playcount:song.playCount};
+ item[type]=PlayList.urlBase+encodeURIComponent(song.path);
if(PlayList.isTemp){
PlayList.tempPlaylist.push(item);
}else{