diff --git a/docs/config/dir-watch.md b/docs/config/dir-watch.md index 7ddad23..5834249 100644 --- a/docs/config/dir-watch.md +++ b/docs/config/dir-watch.md @@ -33,7 +33,10 @@ The *rdioScanner.dirWatch* property an *array* of *dirWatch objects* which descr // [optional] The type of the audio file // It can be "default", "sdrtrunk" or "trunk-recorder" - "type": "default" + "type": "default", + + // [optional] Set this to true to successfully watch files over a network + "usePolling": true } ] } diff --git a/server/lib/rdio-scanner/dir-watch.js b/server/lib/rdio-scanner/dir-watch.js index 900257c..d089ad4 100644 --- a/server/lib/rdio-scanner/dir-watch.js +++ b/server/lib/rdio-scanner/dir-watch.js @@ -38,6 +38,7 @@ class DirWatch { awaitWriteFinish: true, ignoreInitial: true, recursive: true, + usePolling: typeof dirWatch.usePolling === 'boolean' ? dirWatch.usePolling : false, }); watcher.on('add', async (filename) => {