mirror of
https://github.com/wkulhanek/bonob.git
synced 2025-12-21 17:33:29 +01:00
Adding submission=true to scrobble call
This commit is contained in:
@@ -548,7 +548,7 @@ export class Navidrome implements MusicService {
|
|||||||
},
|
},
|
||||||
scrobble: async (id: string) =>
|
scrobble: async (id: string) =>
|
||||||
navidrome
|
navidrome
|
||||||
.post(credentials, `/rest/scrobble`, { id })
|
.post(credentials, `/rest/scrobble`, { id, submission: true })
|
||||||
.then((_) => true)
|
.then((_) => true)
|
||||||
.catch(() => false),
|
.catch(() => false),
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -2185,6 +2185,7 @@ describe("Navidrome", () => {
|
|||||||
expect(mockPOST).toHaveBeenCalledWith(`${url}/rest/scrobble`, {
|
expect(mockPOST).toHaveBeenCalledWith(`${url}/rest/scrobble`, {
|
||||||
params: {
|
params: {
|
||||||
id,
|
id,
|
||||||
|
submission: true,
|
||||||
...authParams,
|
...authParams,
|
||||||
},
|
},
|
||||||
headers,
|
headers,
|
||||||
@@ -2216,6 +2217,7 @@ describe("Navidrome", () => {
|
|||||||
expect(mockPOST).toHaveBeenCalledWith(`${url}/rest/scrobble`, {
|
expect(mockPOST).toHaveBeenCalledWith(`${url}/rest/scrobble`, {
|
||||||
params: {
|
params: {
|
||||||
id,
|
id,
|
||||||
|
submission: true,
|
||||||
...authParams,
|
...authParams,
|
||||||
},
|
},
|
||||||
headers,
|
headers,
|
||||||
|
|||||||
Reference in New Issue
Block a user