mirror of
https://github.com/wkulhanek/bonob.git
synced 2025-12-21 17:33:29 +01:00
Change playing of a track to mark nowPlaying rather than scrobble, refactor/tidy up track streaming
This commit is contained in:
@@ -549,7 +549,10 @@ export class Navidrome implements MusicService {
|
||||
.get(
|
||||
credentials,
|
||||
`/rest/stream`,
|
||||
{ id: trackId, c: this.streamClientApplication(track) },
|
||||
{
|
||||
id: trackId,
|
||||
c: this.streamClientApplication(track),
|
||||
},
|
||||
{
|
||||
headers: pipe(
|
||||
range,
|
||||
@@ -628,6 +631,13 @@ export class Navidrome implements MusicService {
|
||||
})
|
||||
.then((_) => true)
|
||||
.catch(() => false),
|
||||
nowPlaying: async (id: string) =>
|
||||
navidrome
|
||||
.get(credentials, `/rest/scrobble`, {
|
||||
id,
|
||||
})
|
||||
.then((_) => true)
|
||||
.catch(() => false),
|
||||
searchArtists: async (query: string) =>
|
||||
navidrome
|
||||
.search3(credentials, { query, artistCount: 20 })
|
||||
|
||||
Reference in New Issue
Block a user