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;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!playlistPosition) {
|
if (!playlistPosition || !playlist.externalPosition) {
|
||||||
// Old style playlist
|
// Old style playlist
|
||||||
playlistPosition = {
|
playlistPosition = {
|
||||||
index: playlist.pos,
|
index: playlist.pos,
|
||||||
|
@ -221,7 +221,7 @@ PlaylistModule.prototype.save = function (data) {
|
||||||
};
|
};
|
||||||
|
|
||||||
if (this._listDirty) {
|
if (this._listDirty) {
|
||||||
data.playlist = { pl: arr };
|
data.playlist = { pl: arr, pos, time, externalPosition: true };
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
data.playlist = { pl: arr, pos, time };
|
data.playlist = { pl: arr, pos, time };
|
||||||
|
|
|
@ -1,4 +1,6 @@
|
||||||
const switches = {};
|
const switches = {
|
||||||
|
plDirtyCheck: true
|
||||||
|
};
|
||||||
|
|
||||||
export function isActive(switchName) {
|
export function isActive(switchName) {
|
||||||
return switches.hasOwnProperty(switchName) && switches[switchName] === true;
|
return switches.hasOwnProperty(switchName) && switches[switchName] === true;
|
||||||
|
|
Loading…
Reference in New Issue