From 029aea2d24168c61959650da974dd0f316644e88 Mon Sep 17 00:00:00 2001 From: phyzical <5182053+phyzical@users.noreply.github.com> Date: Mon, 26 Aug 2024 22:21:23 +0800 Subject: [PATCH 1/2] dir ref needs to be a bit more magical --- util/constants.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/util/constants.js b/util/constants.js index 8ec5097..4ed71a9 100644 --- a/util/constants.js +++ b/util/constants.js @@ -1,4 +1,7 @@ import path from 'path'; +import { fileURLToPath } from 'url'; +const __filename = fileURLToPath(import.meta.url); +const __dirname = path.dirname(__filename); export default { AUTH: { @@ -54,7 +57,7 @@ export default { YOUTUBE_SEARCH: { // this roughly equates to a max of 30mb MAX_MINUTES: 15, - GENERIC_IMAGE: path.join(process.cwd(), "logo.png"), + GENERIC_IMAGE: path.join(__dirname, "logo.png"), VALID_CONTEXTS: ['itemName', 'albumName', 'artistName'], }, }; From 058021c2b64deebab58a03adefe658372b9c760b Mon Sep 17 00:00:00 2001 From: phyzical <5182053+phyzical@users.noreply.github.com> Date: Mon, 26 Aug 2024 22:21:35 +0800 Subject: [PATCH 2/2] bbump --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index ff2a01a..730c74d 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "@swapnilsoni1999/spotify-dl", "productName": "Spotify Downloader", - "version": "1.2.3", + "version": "1.2.4", "description": "Spotify Songs, Playlist & Album Downloader", "main": "app.js", "bin": {