mirror of https://github.com/calzoneman/sync.git
Fix video sources being lost when playlist is saved
This commit is contained in:
parent
30a5657d62
commit
b7ceee8ef4
|
@ -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"
|
||||
},
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue