forked from Github/Axter-Stash
- Added start and stop FileMonitor button to Tools-UI FileMonitor Status - Fixed bug associated with starting FileMonitor service with no jobs waiting.
58 lines
2.2 KiB
YAML
58 lines
2.2 KiB
YAML
name: FileMonitor
|
|
description: Monitors the Stash library folders, and updates Stash if any changes occurs in the Stash library paths.
|
|
version: 1.0.3
|
|
url: https://github.com/David-Maisonave/Axter-Stash/tree/main/plugins/FileMonitor
|
|
ui:
|
|
javascript:
|
|
- filemonitor.js
|
|
settings:
|
|
recursiveDisabled:
|
|
displayName: No Recursive
|
|
description: Enable to STOP monitoring paths recursively.
|
|
type: BOOLEAN
|
|
turnOnScheduler:
|
|
displayName: Scheduler
|
|
description: Enable to turn on the scheduler. See filemonitor_config.py for more details.
|
|
type: BOOLEAN
|
|
turnOnSchedulerDeleteDup:
|
|
displayName: Delete Duplicate Scheduler
|
|
description: Turn on scheduler for deleting duplicates in Stash library. (Requires plugin DupFileManager and [Scheduler] enabled)
|
|
type: BOOLEAN
|
|
zmaximumBackups:
|
|
displayName: Max DB Backups
|
|
description: Trim database backup files to set value. Requires [Scheduler] enabled and backupDirectoryPath path length longer than 4.
|
|
type: NUMBER
|
|
zzdebugTracing:
|
|
displayName: Debug Tracing
|
|
description: Enable debug tracing. When enabled, additional tracing logging is added to Stash\plugins\FileMonitor\filemonitor.log
|
|
type: BOOLEAN
|
|
exec:
|
|
- python
|
|
- "{pluginDir}/filemonitor.py"
|
|
interface: raw
|
|
tasks:
|
|
- name: Start Library Monitor Service
|
|
description: Run [Library Monitor] as a SERVICE to update Stash with any media file changes.
|
|
defaultArgs:
|
|
mode: start_library_monitor_service
|
|
- name: Stop Library Monitor
|
|
description: Stops library monitoring within 2 minutes.
|
|
defaultArgs:
|
|
mode: stop_library_monitor
|
|
- name: Monitor as a Plugin
|
|
description: Run [Library Monitor] as a plugin (*Not recommended*)
|
|
defaultArgs:
|
|
mode: start_library_monitor
|
|
- name: Synchronize Library Tag
|
|
description: Tag (_NoLongerPartOfLibrary) scenes from database with paths no longer in Stash Library.
|
|
defaultArgs:
|
|
mode: sync_library_tag
|
|
- name: Synchronize Library Clean
|
|
description: Remove scenes from database with paths no longer in Stash Library.
|
|
defaultArgs:
|
|
mode: sync_library_remove
|
|
- name: Clear Sync Tags
|
|
description: Clear tag _NoLongerPartOfLibrary. Remove this tag from all files.
|
|
defaultArgs:
|
|
mode: clear_sync_tags_task
|