Skip to content

Commit

Permalink
fix: Skip Count added to required headers (to properly handle edge case)
Browse files Browse the repository at this point in the history
  • Loading branch information
rombat committed Sep 9, 2022
1 parent 5ffaca8 commit 90b4526
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 4 deletions.
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down
11 changes: 10 additions & 1 deletion lib/handlers/MBNDSynchronizer.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,16 @@ const path = require('path');

class MBNDSynchronizer {
constructor(options, action) {
this.REQUIRED_HEADERS = ['<File path>', '<Filename>', '<Folder>', 'Last Played', 'Play Count', 'Rating', 'Love'];
this.REQUIRED_HEADERS = [
'<File path>',
'<Filename>',
'<Folder>',
'Last Played',
'Play Count',
'Rating',
'Love',
'Skip Count'
];
this.paths = {
backupFilePath: undefined,
defaultWorkingDirectory: './',
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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": {
Expand Down

0 comments on commit 90b4526

Please sign in to comment.