Fix meta clearing on playlist save

This commit is contained in:
Calvin Montgomery 2014-06-07 13:00:23 -07:00
parent 6adba2f355
commit 63e60e65f0
1 changed files with 6 additions and 6 deletions

View File

@ -132,14 +132,14 @@ PlaylistModule.prototype.load = function (data) {
};
PlaylistModule.prototype.save = function (data) {
var arr = this.items.toArray().map(function (m) {
var arr = this.items.toArray().map(function (item) {
/* Clear Google Docs and Vimeo meta */
if (m.meta) {
delete m.meta.object;
delete m.meta.params;
delete m.meta.direct;
if (item.media && item.media.meta) {
delete item.media.meta.object;
delete item.media.meta.params;
delete item.media.meta.direct;
}
return m;
return item;
});
var pos = 0;
for (var i = 0; i < arr.length; i++) {