Only do NEF until we get ORF working

Signed-off-by: James Ketrenos <james_git@ketrenos.com>
This commit is contained in:
James Ketr 2018-09-08 19:53:47 -07:00
parent dede4f245c
commit 9a5ea06eee

View File

@ -13,8 +13,9 @@ const picturesPath = config.get("picturesPath");
const processQueue = [], triedClean = [];
//const rawExtension = /\.(nef|orf)$/i;
const rawExtension = /\.nef$/i;
//const rawExtension = /\.(nef|orf)$/i, extensions = [ "jpg", "jpeg", "png", "gif", "nef", "orf" ];
const rawExtension = /\.nef$/i, extensions = [ "jpg", "jpeg", "png", "gif", "nef" ];
function removeNewerFile(path, fileA, fileB) {
fs.stat(path + "/" + fileA, function(err, statsA) {
@ -37,8 +38,7 @@ function removeNewerFile(path, fileA, fileB) {
}
function scanDir(parent, path) {
let extensions = [ "jpg", "jpeg", "png", "gif", "nef", "orf" ],
re = new RegExp("\.((" + extensions.join(")|(") + "))$", "i"),
let re = new RegExp("\.((" + extensions.join(")|(") + "))$", "i"),
replacements = {
path: path.slice(picturesPath.length),
name: path.replace(/.*\//, "").replace(/_/g, " "),