From 0643b6d7192ebfa1946f0bf5d6e61fd328721e93 Mon Sep 17 00:00:00 2001 From: austinried <4966622+austinried@users.noreply.github.com> Date: Mon, 6 Dec 2021 10:05:59 +0900 Subject: [PATCH] use .view method suffix for 1.14.0 (#45) --- app/subsonic/api.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app/subsonic/api.ts b/app/subsonic/api.ts index 0eb1973..bcfe2ec 100644 --- a/app/subsonic/api.ts +++ b/app/subsonic/api.ts @@ -72,7 +72,7 @@ export class SubsonicApiClient { this.params.append('s', server.salt) } - this.params.append('v', '1.15.0') + this.params.append('v', '1.14.0') this.params.append('c', 'subtracks') } @@ -85,7 +85,8 @@ export class SubsonicApiClient { } } - return `${this.address}/rest/${method}?${query}` + // *.view was present on all method names in API 1.14.0 and earlier + return `${this.address}/rest/${method}.view?${query}` } private async apiGetXml(method: string, params?: { [key: string]: any }): Promise {