Skip to content

Commit

Permalink
fix: default binary file doesn't depend on YOUTUBE_DL_PLATFORM
Browse files Browse the repository at this point in the history
  • Loading branch information
skick1234 committed Mar 13, 2021
1 parent 8b2d716 commit 45bad59
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/constants.js
Expand Up @@ -19,8 +19,8 @@ const YOUTUBE_DL_PLATFORM =
: PLATFORM_WIN

const YOUTUBE_DL_FILENAME =
`youtube-dl${process.platform === PLATFORM_WIN ? '.exe' : ''}`
process.env.YOUTUBE_DL_FILENAME ||
`youtube-dl${YOUTUBE_DL_PLATFORM === PLATFORM_WIN ? '.exe' : ''}`

const YOUTUBE_DL_PATH = path.join(YOUTUBE_DL_DIR, YOUTUBE_DL_FILENAME)

Expand Down

0 comments on commit 45bad59

Please sign in to comment.