✏️ Troubleshooting issues with the fileWatcher
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -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":
|
||||||
|
|||||||
Reference in New Issue
Block a user