From 90b4526c5df76eb9af39e15de4fe91b7e0aed297 Mon Sep 17 00:00:00 2001 From: Romain Batigne Date: Fri, 9 Sep 2022 17:37:31 +0200 Subject: [PATCH] fix: Skip Count added to required headers (to properly handle edge case) --- index.js | 4 ++-- lib/handlers/MBNDSynchronizer.js | 11 ++++++++++- package.json | 2 +- 3 files changed, 13 insertions(+), 4 deletions(-) diff --git a/index.js b/index.js index 5f4eabc..8ab9b77 100644 --- a/index.js +++ b/index.js @@ -9,9 +9,9 @@ const runAction = async (options, command) => { program .name('musicbee-navidrome-sync') .description( - 'MusicBee to Navidrome Sync (MBNDS) : Tools to sync MusicBee DB with Navidrome DB\nhttps://github.com/rombat/musicbee-navidrome-sync' + 'MusicBee to Navidrome Sync (MBNDS) : Tools to sync MusicBee DB to Navidrome DB\nhttps://github.com/rombat/musicbee-navidrome-sync' ) - .version('1.0.0', '-v, --version', 'output the current version'); + .version('1.0.1', '-v, --version', 'output the current version'); program .command('fullSync') diff --git a/lib/handlers/MBNDSynchronizer.js b/lib/handlers/MBNDSynchronizer.js index c406167..b8ca02b 100644 --- a/lib/handlers/MBNDSynchronizer.js +++ b/lib/handlers/MBNDSynchronizer.js @@ -20,7 +20,16 @@ const path = require('path'); class MBNDSynchronizer { constructor(options, action) { - this.REQUIRED_HEADERS = ['', '', '', 'Last Played', 'Play Count', 'Rating', 'Love']; + this.REQUIRED_HEADERS = [ + '', + '', + '', + 'Last Played', + 'Play Count', + 'Rating', + 'Love', + 'Skip Count' + ]; this.paths = { backupFilePath: undefined, defaultWorkingDirectory: './', diff --git a/package.json b/package.json index 9ba4b39..5aabdc2 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "musicbee-navidrome-sync", - "version": "1.0.0", + "version": "1.0.1", "description": "sync ratings and playcount from musicbee db to navidrome db", "main": "index.js", "scripts": {