Fix meta clearing on playlist save

This commit is contained in:
Calvin Montgomery 2014-06-07 12:59:42 -07:00
parent 19aac29347
commit 777a87a8e6
1 changed files with 7 additions and 3 deletions

View File

@ -133,9 +133,13 @@ PlaylistModule.prototype.load = function (data) {
};
PlaylistModule.prototype.save = function (data) {
var arr = this.items.toArray().map(function (m) {
delete m.meta;
return m;
var arr = this.items.toArray().map(function (item) {
if (item.media && item.media.meta) {
delete item.media.meta.object;
delete item.media.meta.params;
delete item.media.meta.direct;
}
return item;
});
var pos = 0;
for (var i = 0; i < arr.length; i++) {