Skip to content

Commit 2c29e90

Browse files
Fixes (#1042)
FFMpeg copy path was not correct --------- Co-authored-by: Ayushman Chhabra <[email protected]>
1 parent 0a8cba3 commit 2c29e90

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/get/index.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ import util from "../util.js";
3232
async function get(options) {
3333

3434
/**
35-
* If `options.cacheDir` exists, then `true`. Otherwise, it is `false`.
35+
* If `options.cacheDir` exists, then `true`. Otherwise, it is `false`.
3636
*
3737
* @type {boolean}
3838
*/
@@ -77,7 +77,7 @@ async function get(options) {
7777
await fs.promises.rm(nwDirPath, { recursive: true, force: true });
7878

7979
/**
80-
* If the compressed binary exists, then `true`. Otherwise, it is `false`.
80+
* If the compressed binary exists, then `true`. Otherwise, it is `false`.
8181
*
8282
* @type {boolean}
8383
*/
@@ -109,7 +109,7 @@ async function get(options) {
109109
}
110110

111111
/**
112-
* If the compressed binary exists, then `true`. Otherwise, it is `false`.
112+
* If the compressed binary exists, then `true`. Otherwise, it is `false`.
113113
*
114114
* @type {boolean}
115115
*/
@@ -143,7 +143,7 @@ async function get(options) {
143143
*
144144
* @type {string}
145145
*/
146-
let ffmpegBinaryPath = path.resolve(nwDirPath, ffmpegFileName);
146+
let ffmpegBinaryPath = path.resolve(options.cacheDir, ffmpegFileName);
147147

148148
/**
149149
* File path of where FFmpeg will be copied to.
@@ -194,7 +194,7 @@ async function get(options) {
194194
}
195195

196196
/**
197-
* If the compressed binary exists, then `true`. Otherwise, it is `false`.
197+
* If the compressed binary exists, then `true`. Otherwise, it is `false`.
198198
*
199199
* @type {boolean}
200200
*/

0 commit comments

Comments
 (0)