mirror of https://github.com/calzoneman/sync.git
Strip GDrive metadata from saved channel playlists
This commit is contained in:
parent
8340bf2c81
commit
54bf7f1c5b
|
@ -2,7 +2,7 @@
|
|||
"author": "Calvin Montgomery",
|
||||
"name": "CyTube",
|
||||
"description": "Online media synchronizer and chat",
|
||||
"version": "3.55.3",
|
||||
"version": "3.55.4",
|
||||
"repository": {
|
||||
"url": "http://github.com/calzoneman/sync"
|
||||
},
|
||||
|
|
13
src/media.js
13
src/media.js
|
@ -25,14 +25,13 @@ Media.prototype = {
|
|||
},
|
||||
|
||||
pack: function () {
|
||||
return {
|
||||
const result = {
|
||||
id: this.id,
|
||||
title: this.title,
|
||||
seconds: this.seconds,
|
||||
duration: this.duration,
|
||||
type: this.type,
|
||||
meta: {
|
||||
direct: this.meta.direct,
|
||||
restricted: this.meta.restricted,
|
||||
codec: this.meta.codec,
|
||||
bitrate: this.meta.bitrate,
|
||||
|
@ -42,6 +41,16 @@ Media.prototype = {
|
|||
textTracks: this.meta.textTracks
|
||||
}
|
||||
};
|
||||
|
||||
/*
|
||||
* 2018-03-05: Remove GDrive metadata from saved playlists to save
|
||||
* space since this is no longer used.
|
||||
*/
|
||||
if (this.type !== "gd") {
|
||||
result.meta.direct = this.meta.direct;
|
||||
}
|
||||
|
||||
return result;
|
||||
},
|
||||
|
||||
getTimeUpdate: function () {
|
||||
|
|
Loading…
Reference in New Issue