mirror of
https://github.com/jeffvli/feishin.git
synced 2026-08-09 22:03:09 +02:00
re-add support for OS songLyrics v1 (#2327)
This commit is contained in:
@@ -2035,12 +2035,22 @@ export const SubsonicController: InternalControllerEndpoint = {
|
||||
getStructuredLyrics: async (args) => {
|
||||
const { apiClientProps, query } = args;
|
||||
const server = apiClientProps.server;
|
||||
const supportsStructuredLyrics = hasFeatureWithVersion(
|
||||
server,
|
||||
ServerFeature.LYRICS_MULTIPLE_STRUCTURED,
|
||||
1,
|
||||
);
|
||||
|
||||
const supportsEnhancedLyrics = hasFeatureWithVersion(
|
||||
server,
|
||||
ServerFeature.LYRICS_MULTIPLE_STRUCTURED,
|
||||
2,
|
||||
);
|
||||
|
||||
if (!supportsStructuredLyrics && !supportsEnhancedLyrics) {
|
||||
return [];
|
||||
}
|
||||
|
||||
const res = await ssApiClient(apiClientProps).getStructuredLyrics({
|
||||
query: {
|
||||
enhanced: supportsEnhancedLyrics ? true : undefined,
|
||||
|
||||
Reference in New Issue
Block a user