diff --git a/README.md b/README.md index 32eb633..e069f56 100644 --- a/README.md +++ b/README.md @@ -7,12 +7,15 @@ Given a folder of tracks (supports mp3, ogg, flac, and many more), it will read ``` _albums/ foo.md + _data/ albums.yml + _tracks/ foo/ 1-bar.md 2-baz.md + assets/ foo/ 1-bar.mp3 @@ -23,7 +26,7 @@ All Markdown files will encode the metadata in the [Front Matter](https://jekyll ## Installation -1. Make sure `nodejs` is installed and up-tp-date: +1. Make sure [Node.js](https://nodejs.org/en/download/) is installed and up-tp-date: ``` brew install node @@ -48,7 +51,7 @@ publikator -h To organise tracks and generate release information: ``` -publikator organise pathToMySongs outputPath +publikator organise ``` Use the `--delete` flag to start with a clean output directory. diff --git a/package.json b/package.json index 0d80bc4..266374f 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "publikator", - "version": "0.7.0", + "version": "0.8.0", "main": "index.js", "repository": "https://github.com/aengl/publikator.git", "author": "Lynn Smeria ", diff --git a/src/organise.js b/src/organise.js index 2274a9e..35da24e 100644 --- a/src/organise.js +++ b/src/organise.js @@ -9,7 +9,7 @@ const tags = require('./tags'); /** * Given a track file, return the album name. */ -const getAlbumName = file => file.common.album.replace(/ /g, '_'); +const getAlbumName = file => file.common.album.replace(/ /g, '-'); /** * Given a track file, return the new file name. @@ -17,7 +17,7 @@ const getAlbumName = file => file.common.album.replace(/ /g, '_'); const getFileName = file => `${file.common.track.no}-${file.common.title}${path.extname( file.path - )}`.replace(/ /g, '_'); + )}`.replace(/ /g, '-'); /** * Strips the extension from a file name;