Json encoder server-side; Select your own lyrics result

This commit is contained in:
James Barnsley
2017-10-17 18:54:57 +13:00
parent e56cbe4c5d
commit 771bcf8c5e
6 changed files with 121 additions and 26 deletions

View File

@ -158,7 +158,7 @@ function refreshToken(dispatch, getState){
.then(
response => {
if (response.response_code == 200){
var token = JSON.parse(response.response);
var token = response.response;
token.token_expiry = new Date().getTime() + (token.expires_in * 1000 );
token.source = 'mopidy';
dispatch({