mirror of https://github.com/calzoneman/sync.git
Fix meta clearing on playlist save
This commit is contained in:
parent
19aac29347
commit
777a87a8e6
|
@ -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++) {
|
||||
|
|
Loading…
Reference in New Issue