From 449f718e6fe557caac71705e6b33d5082c1bf220 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maciej=20P=C4=99dzich?= Date: Fri, 27 Jan 2023 15:48:17 +0100 Subject: [PATCH] Use the right variable for determining fetch URL --- bot.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bot.ts b/bot.ts index d6fe75f..6be45d8 100644 --- a/bot.ts +++ b/bot.ts @@ -75,7 +75,7 @@ export const bot: ApplicationFunction = (app) => { ).replace('https:/', 'https://'); const url = getPlaylistIdFromUrl(filenameWithoutRegistryPath) - ? filename + ? filenameWithoutRegistryPath : `https://open.spotify.com/playlist/${filenameWithoutRegistryPath}`; const spotifyResponse = await fetch(url);