Skip to content

Commit

Permalink
Merge pull request #260 from phyzical/feature/fix-fallback-logo-ref
Browse files Browse the repository at this point in the history
Feature/fix fallback logo ref
  • Loading branch information
phyzical authored Aug 26, 2024
2 parents 5ed5fe8 + 058021c commit 38c0b7d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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": {
Expand Down
5 changes: 4 additions & 1 deletion util/constants.js
Original file line number Diff line number Diff line change
@@ -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: {
Expand Down Expand Up @@ -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'],
},
};

0 comments on commit 38c0b7d

Please sign in to comment.