mirror of
https://github.com/jeffvli/feishin.git
synced 2026-06-17 08:54:27 +02:00
re-add missing scrobble on playback start when using playback report (#2131)
This commit is contained in:
@@ -2309,7 +2309,7 @@ export const SubsonicController: InternalControllerEndpoint = {
|
|||||||
const { apiClientProps, query } = args;
|
const { apiClientProps, query } = args;
|
||||||
|
|
||||||
if (hasFeature(apiClientProps.server, ServerFeature.REPORT_PLAYBACK)) {
|
if (hasFeature(apiClientProps.server, ServerFeature.REPORT_PLAYBACK)) {
|
||||||
if (query.submission) {
|
if (query.submission || query.event === 'start') {
|
||||||
const res = await ssApiClient(apiClientProps).scrobble({
|
const res = await ssApiClient(apiClientProps).scrobble({
|
||||||
query: {
|
query: {
|
||||||
id: query.id,
|
id: query.id,
|
||||||
@@ -2321,7 +2321,9 @@ export const SubsonicController: InternalControllerEndpoint = {
|
|||||||
throw new Error('Failed to scrobble');
|
throw new Error('Failed to scrobble');
|
||||||
}
|
}
|
||||||
|
|
||||||
return null;
|
if (query.submission) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
let state: 'paused' | 'playing' | 'starting' | 'stopped' = 'playing';
|
let state: 'paused' | 'playing' | 'starting' | 'stopped' = 'playing';
|
||||||
|
|||||||
Reference in New Issue
Block a user