Skip to content

Commit

Permalink
Fixed misspelling of submission in scrobble. (#266)
Browse files Browse the repository at this point in the history
  • Loading branch information
brian-doherty authored May 28, 2022
1 parent 9d8ad22 commit 2c83538
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/subsonic/subsonic-service.js
Original file line number Diff line number Diff line change
Expand Up @@ -552,7 +552,7 @@ function subsonicService(
var promise = self.subsonicRequest('scrobble.view', {
params: {
id: song.id,
submisssion: true
submission: true
}
}).then(function () {
if (globals.settings.Debug) { console.log('Successfully scrobbled song: ' + song.id); }
Expand Down
2 changes: 1 addition & 1 deletion app/subsonic/subsonic-service_test.js
Original file line number Diff line number Diff line change
Expand Up @@ -585,7 +585,7 @@ describe("Subsonic service -", function () {
it("scrobble() - Given a song, when I scrobble it, then a promise will be resolved with true if there was no error", function () {
var song = { id: 45872 };
var url = 'http://demo.subsonic.com/rest/scrobble.view?' +
'c=Jamstash&callback=JSON_CALLBACK&f=jsonp' + '&id=45872' + '&p=enc:cGFzc3dvcmQ%3D' + '&submisssion=true' + '&u=Hyzual&v=1.10.2';
'c=Jamstash&callback=JSON_CALLBACK&f=jsonp' + '&id=45872' + '&p=enc:cGFzc3dvcmQ%3D' + '&submission=true' + '&u=Hyzual&v=1.10.2';
mockBackend.expectJSONP(url).respond(JSON.stringify(response));

var promise = subsonic.scrobble(song);
Expand Down

0 comments on commit 2c83538

Please sign in to comment.