mirror of https://github.com/calzoneman/sync.git
Minor tweak to playlist dirty check
This commit is contained in:
parent
d706bf63b1
commit
46a738b7f4
|
@ -142,7 +142,7 @@ PlaylistModule.prototype.load = function (data) {
|
|||
return;
|
||||
}
|
||||
|
||||
if (!playlistPosition) {
|
||||
if (!playlistPosition || !playlist.externalPosition) {
|
||||
// Old style playlist
|
||||
playlistPosition = {
|
||||
index: playlist.pos,
|
||||
|
@ -221,7 +221,7 @@ PlaylistModule.prototype.save = function (data) {
|
|||
};
|
||||
|
||||
if (this._listDirty) {
|
||||
data.playlist = { pl: arr };
|
||||
data.playlist = { pl: arr, pos, time, externalPosition: true };
|
||||
}
|
||||
} else {
|
||||
data.playlist = { pl: arr, pos, time };
|
||||
|
|
|
@ -1,4 +1,6 @@
|
|||
const switches = {};
|
||||
const switches = {
|
||||
plDirtyCheck: true
|
||||
};
|
||||
|
||||
export function isActive(switchName) {
|
||||
return switches.hasOwnProperty(switchName) && switches[switchName] === true;
|
||||
|
|
Loading…
Reference in New Issue