Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixed playback page.

Signed-off-by: Diwank Singh Tomer <diwank.singh@gmail.com>
  • Loading branch information...
commit 9b901c9f859aaee89c7237acdd56e87e7cfaf3a4 1 parent 8222ad1
@creatorrr authored
Showing with 5 additions and 4 deletions.
  1. +2 −3 package.json
  2. +3 −1 src/routes.coffee
View
5 package.json
@@ -1,6 +1,6 @@
{
"name": "hubot-rdio",
- "version": "0.0.5c",
+ "version": "0.0.5d",
"description": "Rdio controller for hubot.",
"main": "lib/index.js",
"scripts": {
@@ -24,6 +24,5 @@
"author": "creatorrr",
"license": "BSD",
"readmeFilename": "README.md",
- "devDependencies": {},
- "gitHead": "091feb4de1321049eafe7915d692d5b9022938c8"
+ "devDependencies": {}
}
View
4 src/routes.coffee
@@ -1,4 +1,5 @@
# External libraries
+{parse} = require 'url'
Rdio = require 'node-rdio'
# Modules
@@ -88,7 +89,8 @@ module.exports = routes = (robot) ->
redirect: '/'
else
- rdio.call 'getPlaybackToken', {domain: DOMAIN}, (error, data) ->
+ {hostname} = parse DOMAIN
+ rdio.call 'getPlaybackToken', { domain: hostname }, (error, data) ->
if error
res.end pages.error
message: "Error: #{ error }"
Please sign in to comment.
Something went wrong with that request. Please try again.