Use dashes instead of underscores
This commit is contained in:
parent
c86d8c4ce6
commit
e875e0ed5d
|
@ -7,12 +7,15 @@ Given a folder of tracks (supports mp3, ogg, flac, and many more), it will read
|
||||||
```
|
```
|
||||||
_albums/
|
_albums/
|
||||||
foo.md
|
foo.md
|
||||||
|
|
||||||
_data/
|
_data/
|
||||||
albums.yml
|
albums.yml
|
||||||
|
|
||||||
_tracks/
|
_tracks/
|
||||||
foo/
|
foo/
|
||||||
1-bar.md
|
1-bar.md
|
||||||
2-baz.md
|
2-baz.md
|
||||||
|
|
||||||
assets/
|
assets/
|
||||||
foo/
|
foo/
|
||||||
1-bar.mp3
|
1-bar.mp3
|
||||||
|
@ -23,7 +26,7 @@ All Markdown files will encode the metadata in the [Front Matter](https://jekyll
|
||||||
|
|
||||||
## Installation
|
## 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
|
brew install node
|
||||||
|
@ -48,7 +51,7 @@ publikator -h
|
||||||
To organise tracks and generate release information:
|
To organise tracks and generate release information:
|
||||||
|
|
||||||
```
|
```
|
||||||
publikator organise pathToMySongs outputPath
|
publikator organise <pathToMySongs> <outputPath>
|
||||||
```
|
```
|
||||||
|
|
||||||
Use the `--delete` flag to start with a clean output directory.
|
Use the `--delete` flag to start with a clean output directory.
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "publikator",
|
"name": "publikator",
|
||||||
"version": "0.7.0",
|
"version": "0.8.0",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"repository": "https://github.com/aengl/publikator.git",
|
"repository": "https://github.com/aengl/publikator.git",
|
||||||
"author": "Lynn Smeria <ae@cephea.de>",
|
"author": "Lynn Smeria <ae@cephea.de>",
|
||||||
|
|
|
@ -9,7 +9,7 @@ const tags = require('./tags');
|
||||||
/**
|
/**
|
||||||
* Given a track file, return the album name.
|
* 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.
|
* Given a track file, return the new file name.
|
||||||
|
@ -17,7 +17,7 @@ const getAlbumName = file => file.common.album.replace(/ /g, '_');
|
||||||
const getFileName = file =>
|
const getFileName = file =>
|
||||||
`${file.common.track.no}-${file.common.title}${path.extname(
|
`${file.common.track.no}-${file.common.title}${path.extname(
|
||||||
file.path
|
file.path
|
||||||
)}`.replace(/ /g, '_');
|
)}`.replace(/ /g, '-');
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Strips the extension from a file name;
|
* Strips the extension from a file name;
|
||||||
|
|
Loading…
Reference in a new issue