From 2911e78e033d6d6b3d75d33067478eedde3c050f Mon Sep 17 00:00:00 2001 From: unexpected unresolved Date: Mon, 30 Sep 2024 21:09:40 +0700 Subject: [PATCH] add: new rainlink deezer plugin (#187) --- package.json | 2 +- src/structures/Rainlink.ts | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 69c233ae..6143db82 100644 --- a/package.json +++ b/package.json @@ -70,7 +70,7 @@ "pretty-ms": "^9.1.0", "rainlink": "^1.2.5", "rainlink-apple": "^1.0.5", - "rainlink-deezer": "^1.0.8", + "rainlink-deezer": "^1.0.9", "rainlink-nico": "^1.0.7", "rainlink-spotify": "^1.0.5", "recursive-readdir": "^2.2.3", diff --git a/src/structures/Rainlink.ts b/src/structures/Rainlink.ts index aa197681..d2ae771e 100644 --- a/src/structures/Rainlink.ts +++ b/src/structures/Rainlink.ts @@ -3,9 +3,9 @@ import { Library, Rainlink, RainlinkAdditionalOptions, RainlinkPlugin } from 'ra import { SpotifyPlugin } from 'rainlink-spotify' import { NicoPlugin } from 'rainlink-nico' import { ApplePlugin } from 'rainlink-apple' -import { DeezerPlugin } from 'rainlink-deezer' import { RainlinkPlugin as YTConverterPlugin } from './YTConverterPlugin.js' import { ExtendedPlayer } from './extended/ExtendedPlayer.js' +import { DeezerPlugin } from 'rainlink-deezer' export class RainlinkInit { client: Manager @@ -55,7 +55,9 @@ export class RainlinkInit { get plugins(): RainlinkPlugin[] { const defaultPlugins: RainlinkPlugin[] = [ - new DeezerPlugin(), + new DeezerPlugin({ + market: 'us' + }), new NicoPlugin({ searchLimit: 10 }), new ApplePlugin({ countryCode: 'us' }), ]