Skip to content

Commit

Permalink
Merge branch 'dev'
Browse files Browse the repository at this point in the history
  • Loading branch information
TheConnMan committed Jan 17, 2017
2 parents dde6a55 + fe703ff commit d1e17a2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion api/services/YouTubeService.js
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,10 @@ function search(query, maxResults) {

function nextRelated(key) {
return relatedVideos(key)
.then((videos) => videos[Math.floor(Math.random() * videos.length)].id.videoId);
.then((videos) => videos[Math.floor(Math.random() * videos.length)].key)
.catch(err => {
logger.error('Unable to find related videos', err);
});
}

function relatedVideos(key, maxResults = 10) {
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": "JukeBot",
"version": "1.4.1",
"version": "1.4.2",
"description": "Slack-Enabled Syncronized Music Listening",
"keywords": [],
"dependencies": {
Expand Down

0 comments on commit d1e17a2

Please sign in to comment.