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", "author": "Calvin Montgomery",
"name": "CyTube", "name": "CyTube",
"description": "Online media synchronizer and chat", "description": "Online media synchronizer and chat",
"version": "3.39.5", "version": "3.39.6",
"repository": { "repository": {
"url": "http://github.com/calzoneman/sync" "url": "http://github.com/calzoneman/sync"
}, },

View File

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