From cf75afd4bc1d54223ffa59ec9ddb8a7c255facf6 Mon Sep 17 00:00:00 2001 From: Max Isom Date: Sun, 30 May 2021 15:01:11 -0500 Subject: Fix shuffle bug for long Spotify playlists A random sample of 50 songs is taken for long playlists since mapping Spotify -> YouTube is expensive. However, the function used previously allowed for duplicates within that sample of 50. --- package.json | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'package.json') diff --git a/package.json b/package.json index 3fbf223..18c3bef 100644 --- a/package.json +++ b/package.json @@ -89,8 +89,7 @@ "spotify-uri": "^2.2.0", "spotify-web-api-node": "^5.0.2", "sqlite3": "^5.0.2", - "unique-random-array": "^2.0.0", "youtube.ts": "^0.2.0", - "ytdl-core": "^4.5.0" + "ytdl-core": "^4.8.2" } } -- cgit v1.2.3