Skip to content

Commit

Permalink
Fixed preview image issue
Browse files Browse the repository at this point in the history
  • Loading branch information
deusprogrammer committed Oct 25, 2023
1 parent a2b64a3 commit 20da3d4
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 9 deletions.
14 changes: 7 additions & 7 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@
"dependencies": {
"@ffmpeg-installer/ffmpeg": "^1.1.0",
"electron-debug": "^3.2.0",
"electron-log": "^4.4.7",
"electron-log": "^4.4.8",
"electron-updater": "^5.0.1",
"ffmpeg-static": "^5.1.0",
"ffprobe-static": "^3.1.0",
Expand Down
4 changes: 3 additions & 1 deletion src/main/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ if (process.platform === "win32") {

ffmpeg.setFfmpegPath(ffmpegPath);

Object.assign(console, log.functions);

console.log("HOME DIRECTORY: " + __dirname);
console.log("FFMPEG PATH: " + ffmpegPath);
console.log("DEFAULT PREVIEW IMAGE: " + defaultPreviewFilePath);
Expand Down Expand Up @@ -324,7 +326,7 @@ const importZip = async (filePath: string, game: string) => {

// Create and add a collection
const collectionId: string = filePath.substring(
filePath.lastIndexOf('/') + 1,
filePath.lastIndexOf(path.sep) + 1,
filePath.lastIndexOf('.zip')
);

Expand Down

0 comments on commit 20da3d4

Please sign in to comment.