From 9865441a56aa5feb654119cc1d2b9fe8685faee3 Mon Sep 17 00:00:00 2001 From: Jonathan Cremin Date: Thu, 20 Aug 2015 23:31:56 +0100 Subject: [PATCH] Update config-related docs --- README.md | 3 ++- lib/services/rdio/index.js | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 675d204..ceafc2a 100644 --- a/README.md +++ b/README.md @@ -8,7 +8,8 @@ Make sharing from music services better. We match links from Rdio, Spotify, Deez * iTunes * Deezer * Google Play Music (requires `GOOGLE_EMAIL` and `GOOGLE_PASSWORD`) -* Rdio (requires `RDIO_API_KEY` and `RDIO_API_SHARED`) +* Rdio (requires `RDIO_CLIENT_ID` and `RDIO_CLIENT_SECRET`) +* Xbox Music (requires `XBOX_CLIENT_ID` and `XBOX_CLIENT_SECRET`) * Youtube (requires `YOUTUBE_KEY`) Google doesn't provide a public API for Play Music, hence this `GOOGLE_PASSWORD` awfulness. The account also needs to be a Google Play Music All Access subscriber and to have played at least one track on a mobile device. Yeah. diff --git a/lib/services/rdio/index.js b/lib/services/rdio/index.js index bbd0557..cb0955d 100644 --- a/lib/services/rdio/index.js +++ b/lib/services/rdio/index.js @@ -5,8 +5,8 @@ import { match as urlMatch } from './url'; export let id = 'rdio'; -if (!process.env.RDIO_CLIENT_ID || !process.env.RDIO_CLIENT_SECRET || !process.env.RDIO_REFRESH_TOKEN) { - console.warn('RDIO_CLIENT_ID, RDIO_REFRESH_TOKEN or RDIO_CLIENT_SECRET environment constiables not found, deactivating Rdio.'); +if (!process.env.RDIO_CLIENT_ID || !process.env.RDIO_CLIENT_SECRET) { + console.warn('RDIO_CLIENT_ID or RDIO_CLIENT_SECRET environment constiables not found, deactivating Rdio.'); } const Rdio = rdioInit({