Skip to content

Commit

Permalink
feat: add catch error log
Browse files Browse the repository at this point in the history
  • Loading branch information
drawcall committed Jul 24, 2024
1 parent 51d98f2 commit 65dc4fd
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 4 deletions.
4 changes: 3 additions & 1 deletion lib/node/gif.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,9 @@ class FFGifImage extends FFImage {
try {
const info = await this.geGifInfo();
fps = Number(info.fps);
} catch (e) {}
} catch (e) {
console.log(this.getPath(), e);
}
return await this.extractGif(fps);
}

Expand Down
4 changes: 3 additions & 1 deletion lib/node/subtitle.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,9 @@ class FFSubtitle extends FFNode {
const options = { verbose: true };
const captions = subsrt.parse(content, options);
return captions;
} catch (e) {}
} catch (e) {
console.log(e);
}
}

return [];
Expand Down
4 changes: 3 additions & 1 deletion lib/node/video.js
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,9 @@ class FFVideo extends FFImage {
try {
const info = await this.getVideoInfo();
this.materials.info = info;
} catch (e) {}
} catch (e) {
console.log(e);
}

this.resetDurationTime();
if (this.audio){
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ffcreator",
"version": "7.3.5",
"version": "7.3.6",
"description": "FFCreator is a lightweight and flexible short video production library",
"main": "lib/index.js",
"types": "types/index.d.ts",
Expand Down

0 comments on commit 65dc4fd

Please sign in to comment.