From a40aeb52ae73fb3976238e95045636fc70a9779c Mon Sep 17 00:00:00 2001 From: simojenki Date: Tue, 27 Jul 2021 07:28:46 +1000 Subject: [PATCH] Increasing count of similar artists to 50 --- src/navidrome.ts | 1 + tests/navidrome.test.ts | 15 +++++++++++++++ 2 files changed, 16 insertions(+) diff --git a/src/navidrome.ts b/src/navidrome.ts index c63f3f1..b7e39d5 100644 --- a/src/navidrome.ts +++ b/src/navidrome.ts @@ -389,6 +389,7 @@ export class Navidrome implements MusicService { getArtistInfo = (credentials: Credentials, id: string): Promise => this.getJSON(credentials, "/rest/getArtistInfo", { id, + count: 50, }).then((it) => ({ image: { small: validate(it.artistInfo.smallImageUrl), diff --git a/tests/navidrome.test.ts b/tests/navidrome.test.ts index ac5dc85..0a72ec2 100644 --- a/tests/navidrome.test.ts +++ b/tests/navidrome.test.ts @@ -547,6 +547,7 @@ describe("Navidrome", () => { params: asURLSearchParams({ ...authParams, id: artist.id, + count: 50 }), headers, }); @@ -610,6 +611,7 @@ describe("Navidrome", () => { params: asURLSearchParams({ ...authParams, id: artist.id, + count: 50 }), headers, }); @@ -673,6 +675,7 @@ describe("Navidrome", () => { params: asURLSearchParams({ ...authParams, id: artist.id, + count: 50 }), headers, }); @@ -736,6 +739,7 @@ describe("Navidrome", () => { params: asURLSearchParams({ ...authParams, id: artist.id, + count: 50 }), headers, }); @@ -790,6 +794,7 @@ describe("Navidrome", () => { params: asURLSearchParams({ ...authParams, id: artist.id, + count: 50 }), headers, }); @@ -842,6 +847,7 @@ describe("Navidrome", () => { params: asURLSearchParams({ ...authParams, id: artist.id, + count: 50 }), headers, }); @@ -892,6 +898,7 @@ describe("Navidrome", () => { params: asURLSearchParams({ ...authParams, id: artist.id, + count: 50 }), headers, }); @@ -2151,6 +2158,7 @@ describe("Navidrome", () => { params: asURLSearchParams({ ...authParams, id: artistId, + count: 50 }), headers, } @@ -2226,6 +2234,7 @@ describe("Navidrome", () => { params: asURLSearchParams({ ...authParams, id: artistId, + count: 50 }), headers, } @@ -2301,6 +2310,7 @@ describe("Navidrome", () => { params: asURLSearchParams({ ...authParams, id: artistId, + count: 50 }), headers, } @@ -2369,6 +2379,7 @@ describe("Navidrome", () => { params: asURLSearchParams({ ...authParams, id: artistId, + count: 50 }), headers, } @@ -2447,6 +2458,7 @@ describe("Navidrome", () => { params: asURLSearchParams({ ...authParams, id: artistId, + count: 50 }), headers, } @@ -2523,6 +2535,7 @@ describe("Navidrome", () => { params: asURLSearchParams({ ...authParams, id: artistId, + count: 50 }), headers, } @@ -2594,6 +2607,7 @@ describe("Navidrome", () => { params: asURLSearchParams({ ...authParams, id: artistId, + count: 50 }), headers, } @@ -2670,6 +2684,7 @@ describe("Navidrome", () => { params: asURLSearchParams({ ...authParams, id: artistId, + count: 50 }), headers, }