Skip to content

Commit

Permalink
fix move target file
Browse files Browse the repository at this point in the history
  • Loading branch information
fourside committed Jan 13, 2022
1 parent a4844c2 commit 859d985
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions radiko/src/recorder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ export async function record(
console.log("ffmpeg:", status);
if (status.success) {
console.log(new TextDecoder().decode(stdout));
moveFile(recordMeta.outputFileName, "/public");
moveFile(recordMeta.outputFileName, `/public/${recordMeta.outputFileName}`);
} else {
const error = new TextDecoder().decode(stderr);
throw new RecRadikoError(error);
Expand Down Expand Up @@ -89,7 +89,7 @@ export async function recordTimefree(
console.log("ffmpeg:", status);
if (status.success) {
console.log(new TextDecoder().decode(stdout));
moveFile(recordMeta.outputFileName, "/public");
moveFile(recordMeta.outputFileName, `/public/${recordMeta.outputFileName}`);
} else {
const error = new TextDecoder().decode(stderr);
throw new RecRadikoError(error);
Expand Down

0 comments on commit 859d985

Please sign in to comment.