Skip to content

Commit

Permalink
fix cli error
Browse files Browse the repository at this point in the history
  • Loading branch information
BigTeri committed Dec 19, 2016
1 parent 2a543f3 commit 08aec06
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion dist/cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ new _server2.default({
stationOptions: {
storageType: _commander2.default.storageType,
ffmpegPath: _commander2.default.ffmpegPath,
playlists: [_commander2.default.youtubeItems.map(item => mapYouTubeList(item))]
playlists: [(_commander2.default.youtubeItems || []).map(item => mapYouTubeList(item))]
}
}).on("error", err => {
console.error(err);
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": "jscast",
"version": "0.3.0",
"version": "0.3.1",
"description": "A SHOUTcast Server/Library written in JavaScript",
"author": "BigTeri",
"license": "MIT",
Expand Down
2 changes: 1 addition & 1 deletion src/cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ new Server({
storageType: program.storageType,
ffmpegPath: program.ffmpegPath,
playlists: [
program.youtubeItems.map((item) => mapYouTubeList(item))
(program.youtubeItems || []).map((item) => mapYouTubeList(item))
]
}
})
Expand Down

0 comments on commit 08aec06

Please sign in to comment.