✏️ Troubleshooting issues with the fileWatcher

This commit is contained in:
2022-03-30 07:44:18 -07:00
parent 610b190f76
commit cb7d0a835b
2 changed files with 3 additions and 2 deletions

View File

@@ -225,7 +225,7 @@ export default class QueueService extends Service {
type: "LS_QUEUE_DRAINED", type: "LS_QUEUE_DRAINED",
result: data, result: data,
}); });
console.log(data); console.log("Drained", data);
return data; return data;
} }
); );

View File

@@ -62,7 +62,7 @@ interface RarFile {
compression: string; compression: string;
} }
const UNRAR_BIN_PATH = process.env.UNRAR_BIN_PATH || "/usr/local/bin/unrar/" const UNRAR_BIN_PATH = process.env.UNRAR_BIN_PATH || "/opt/homebrew/bin/unrar"
export const extractComicInfoXMLFromRar = async ( export const extractComicInfoXMLFromRar = async (
filePath: string filePath: string
): Promise<any> => { ): Promise<any> => {
@@ -290,6 +290,7 @@ export const extractComicInfoXMLFromZip = async (
}; };
export const extractFromArchive = async (filePath: string) => { export const extractFromArchive = async (filePath: string) => {
console.info(`Unrar is located at: ${UNRAR_BIN_PATH}`)
const { extension } = getFileConstituents(filePath); const { extension } = getFileConstituents(filePath);
switch (extension) { switch (extension) {
case ".cbz": case ".cbz":