Fix deezer

This commit is contained in:
Jonathan Cremin 2015-10-13 15:58:13 -07:00
parent 309f1df46f
commit 5f07beff8e
3 changed files with 4 additions and 9 deletions

View file

@ -35,7 +35,7 @@ export function* lookupId(id, type) {
try { try {
cover = yield request.get(coverUrl).redirects(0); cover = yield request.get(coverUrl).redirects(0);
} catch(err) { } catch(err) {
cover = err.message.response.res; cover = err.originalError.response;
} }
let artwork = { let artwork = {
small: cover.headers.location.replace('120x120', '200x200'), small: cover.headers.location.replace('120x120', '200x200'),

View file

@ -18,7 +18,7 @@
}, },
"dependencies": { "dependencies": {
"babel": "~5.8.3", "babel": "~5.8.3",
"bluebird": "~2.9.34", "bluebird": "~2.10.2",
"co": "~4.6.0", "co": "~4.6.0",
"debug": "~2.2.0", "debug": "~2.2.0",
"jspm": "~0.16.0", "jspm": "~0.16.0",
@ -38,7 +38,7 @@
"react-google-analytics": "~0.2.0", "react-google-analytics": "~0.2.0",
"react-router": "~0.13.3", "react-router": "~0.13.3",
"spotify": "~0.3.0", "spotify": "~0.3.0",
"superagent": "~1.3.0", "superagent": "~1.4.0",
"superagent-bluebird-promise": "~2.1.0" "superagent-bluebird-promise": "~2.1.0"
}, },
"devDependencies": { "devDependencies": {
@ -47,7 +47,7 @@
"eslint-plugin-react": "~3.3.0", "eslint-plugin-react": "~3.3.0",
"istanbul": "^0.3.17", "istanbul": "^0.3.17",
"mocha": "~2.3.0", "mocha": "~2.3.0",
"nodemon": "~1.4.1", "nodemon": "~1.7.1",
"parallelshell": "~2.0.0", "parallelshell": "~2.0.0",
"should": "~7.1.0" "should": "~7.1.0"
}, },

View file

@ -7,9 +7,6 @@ export default React.createClass({
render: function() { render: function() {
return ( return (
<html>
<Head {...this.props} />
<body>
<div className='error'> <div className='error'>
<div className='container main'> <div className='container main'>
<div className='row'> <div className='row'>
@ -28,8 +25,6 @@ export default React.createClass({
</div> </div>
</div> </div>
</div> </div>
</body>
</html>
); );
} }
}); });