Skip to content
This repository has been archived by the owner on Nov 11, 2024. It is now read-only.

Commit

Permalink
feat(index): add file mode for play-dl zip file
Browse files Browse the repository at this point in the history
  • Loading branch information
Mednoob committed Jul 23, 2024
1 parent 9752091 commit 237e28f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,11 @@ const streamStrategy = process.env.STREAM_STRATEGY;
if (streamStrategy !== "play-dl") await downloadExecutable();
if (streamStrategy === "play-dl" && !existsSync(nodePath.resolve(process.cwd(), "play-dl-fix"))) {
console.log("[INFO] Downloading play-dl fix...");
writeFileSync(nodePath.resolve(process.cwd(), "temp.zip"), await got.get("https://github.com/YuzuZensai/play-dl-test/archive/2bfbfe6decd68261747ba55800319f9906f12b03.zip").buffer());
writeFileSync(
nodePath.resolve(process.cwd(), "temp.zip"),
await got.get("https://github.com/YuzuZensai/play-dl-test/archive/2bfbfe6decd68261747ba55800319f9906f12b03.zip").buffer(),
{ mode: 0o777 }
);

console.log("[INFO] Extracting play-dl fix...");
mkdirSync(nodePath.resolve(process.cwd(), "play-dl-fix"), { recursive: true });
Expand Down

0 comments on commit 237e28f

Please sign in to comment.