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",
|
"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"
|
||||||
},
|
},
|
||||||
|
|
|
@ -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) {
|
||||||
|
|
Loading…
Reference in New Issue