Skip to content

Commit

Permalink
Add Client Version in Form Data for Login (Avoid {'status':500,'subSt…
Browse files Browse the repository at this point in the history
…atus':999,'userMessage':'Ooops, an unexpected error occurred. We'll try to fix this asap!'}
  • Loading branch information
vicenteguerra committed Jun 12, 2017
1 parent dcecd33 commit 8d9ee13
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions examples/search.js
Expand Up @@ -5,6 +5,7 @@ var api = new TidalAPI({
username: '',
password: '',
token: '_KM2HixcUBZtmktH',
clientVersion: '2.2.1--7',
quality: 'LOSSLESS'
});

Expand Down
3 changes: 2 additions & 1 deletion lib/client.js
Expand Up @@ -98,7 +98,8 @@ function tryLogin(authInfo) {
},
form: {
username: authInfo.username,
password: authInfo.password
password: authInfo.password,
clientVersion: authInfo.clientVersion
}
}, function(err, res, data) {
if(!err){
Expand Down

0 comments on commit 8d9ee13

Please sign in to comment.