Only do NEF until we get ORF working
Signed-off-by: James Ketrenos <james_git@ketrenos.com>
This commit is contained in:
parent
dede4f245c
commit
9a5ea06eee
@ -13,8 +13,9 @@ const picturesPath = config.get("picturesPath");
|
|||||||
|
|
||||||
const processQueue = [], triedClean = [];
|
const processQueue = [], triedClean = [];
|
||||||
|
|
||||||
//const rawExtension = /\.(nef|orf)$/i;
|
//const rawExtension = /\.(nef|orf)$/i, extensions = [ "jpg", "jpeg", "png", "gif", "nef", "orf" ];
|
||||||
const rawExtension = /\.nef$/i;
|
|
||||||
|
const rawExtension = /\.nef$/i, extensions = [ "jpg", "jpeg", "png", "gif", "nef" ];
|
||||||
|
|
||||||
function removeNewerFile(path, fileA, fileB) {
|
function removeNewerFile(path, fileA, fileB) {
|
||||||
fs.stat(path + "/" + fileA, function(err, statsA) {
|
fs.stat(path + "/" + fileA, function(err, statsA) {
|
||||||
@ -37,8 +38,7 @@ function removeNewerFile(path, fileA, fileB) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function scanDir(parent, path) {
|
function scanDir(parent, path) {
|
||||||
let extensions = [ "jpg", "jpeg", "png", "gif", "nef", "orf" ],
|
let re = new RegExp("\.((" + extensions.join(")|(") + "))$", "i"),
|
||||||
re = new RegExp("\.((" + extensions.join(")|(") + "))$", "i"),
|
|
||||||
replacements = {
|
replacements = {
|
||||||
path: path.slice(picturesPath.length),
|
path: path.slice(picturesPath.length),
|
||||||
name: path.replace(/.*\//, "").replace(/_/g, " "),
|
name: path.replace(/.*\//, "").replace(/_/g, " "),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user