Minor tweak to playlist dirty check

This commit is contained in:
Calvin Montgomery 2018-01-14 15:08:55 -08:00
parent d706bf63b1
commit 46a738b7f4
2 changed files with 5 additions and 3 deletions

View File

@ -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 };

View File

@ -1,4 +1,6 @@
const switches = {};
const switches = {
plDirtyCheck: true
};
export function isActive(switchName) {
return switches.hasOwnProperty(switchName) && switches[switchName] === true;