Files
Axter-Stash/plugins/ChangeFileMonitor/README.md
David Maisonave 80d4b6db16 Update README.md
2024-07-28 15:28:45 -04:00

1.7 KiB

ChangeFileMonitor: Ver 0.1.0 (By David Maisonave)

ChangeFileMonitor is a Stash plugin which updates Stash if any changes occurs in the Stash library paths.

Using ChangeFileMonitor as a plugin

  • To start monitoring file changes, go to Stash->Settings->Task->[Plugin Tasks]->ChangeFileMonitor, and click on the [Start Library Monitor] button.
    • ChangeFileMonitor_Task
  • To stop this task, go to Stash->Settings->Task->[Task Queue], and click on the [x].
    • Kill_ChangeFileMonitor_Task

Using ChangeFileMonitor as a script

ChangeFileMonitor can be called as a standalone script.

  • To start monitoring call the script and pass any argument.
    • python changefilemonitor.py foofoo
  • To stop ChangeFileMonitor, pass argument stop.
    • python changefilemonitor.py stop
    • After running above command line, ChangeFileMonitor will stop after the next file change occurs.
    • The stop command works to stop the standalone job and the Stash plugin task job.

Requirements

pip install stashapp-tools pip install pyYAML pip install watchdog

Installation

  • Follow Requirements instructions.
  • In the stash plugin directory (C:\Users\MyUserName.stash\plugins), create a folder named ChangeFileMonitor.
  • Copy all the plugin files to this folder.(C:\Users\MyUserName\.stash\plugins\ChangeFileMonitor).
  • Restart Stash.

That's it!!!

Options

  • All options are accessible in the GUI via Settings->Plugins->Plugins->[ChangeFileMonitor].