Fix video sources being lost when playlist is saved

This commit is contained in:
Calvin Montgomery 2017-07-15 14:12:32 -07:00
parent 30a5657d62
commit b7ceee8ef4
2 changed files with 2 additions and 8 deletions

View File

@ -2,7 +2,7 @@
"author": "Calvin Montgomery",
"name": "CyTube",
"description": "Online media synchronizer and chat",
"version": "3.39.5",
"version": "3.39.6",
"repository": {
"url": "http://github.com/calzoneman/sync"
},

View File

@ -151,13 +151,7 @@ PlaylistModule.prototype.load = function (data) {
};
PlaylistModule.prototype.save = function (data) {
var arr = this.items.toArray().map(function (item) {
/* Clear Google Docs/Google+ and Vimeo meta */
if (item.media && item.media.meta) {
delete item.media.meta.direct;
}
return item;
});
var arr = this.items.toArray();
var pos = 0;
for (var i = 0; i < arr.length; i++) {
if (this.current && arr[i].uid == this.current.uid) {