Add initial Amazon Music support

This commit is contained in:
Jonathan Cremin 2018-04-08 16:31:46 +01:00
parent bd85678303
commit b0fcf55071
25 changed files with 248 additions and 222 deletions

View file

@ -1,6 +1,7 @@
import { parse } from 'url';
import kue from 'kue';
import debuglog from 'debug';
import { inspect } from 'util';
import lookup from '../lib/lookup';
import services from '../lib/services';
@ -57,7 +58,7 @@ export default function* () {
this.body = share;
} catch (e) {
debug(e);
debug(inspect(e, {showHidden: false, depth: null}));
this.throw(400, { error: { message: 'Unexpected error looking up music. Please try again later.' } });
throw e;
}