Media scanner plugin for nestor
Want to see pretty graphs? Log in now!
npm install nestor-media
|2||downloads in the last week|
|2||downloads in the last month|
|Last Published By|
|Version||0.0.2 last updated 2 months ago|
|Dependencies||chokidar, node-ffprobe, when|
Media scanning plugin for nestor
This plugin adds a media scanning facility to nestor, with multiple watched directories.
It should not be used directly, it will be automatically added by other plugins (nestor-music and nestor-video).
WatchedDir: a model to store paths to watched directories
watchedDirs: access to watched directories
media:file: dispatched when a file was discovered or has changed somewhere in a watched directory, with the following arguments:
- full path to the file
- file mimetype
- ffprobe data
media:removed: dispatched when a file was removed somewhere in a watched directory, with the full path to the removed file as an argument.