mirror of https://github.com/calzoneman/sync.git
Fix meta clearing on playlist save
This commit is contained in:
parent
6adba2f355
commit
63e60e65f0
|
@ -132,14 +132,14 @@ PlaylistModule.prototype.load = function (data) {
|
||||||
};
|
};
|
||||||
|
|
||||||
PlaylistModule.prototype.save = 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 */
|
/* Clear Google Docs and Vimeo meta */
|
||||||
if (m.meta) {
|
if (item.media && item.media.meta) {
|
||||||
delete m.meta.object;
|
delete item.media.meta.object;
|
||||||
delete m.meta.params;
|
delete item.media.meta.params;
|
||||||
delete m.meta.direct;
|
delete item.media.meta.direct;
|
||||||
}
|
}
|
||||||
return m;
|
return item;
|
||||||
});
|
});
|
||||||
var pos = 0;
|
var pos = 0;
|
||||||
for (var i = 0; i < arr.length; i++) {
|
for (var i = 0; i < arr.length; i++) {
|
||||||
|
|
Loading…
Reference in New Issue