Example python plugin (#825)

* Add example python plugin
* Fix log incorrectly detecting as progress level
This commit is contained in:
WithoutPants
2020-10-12 08:20:20 +11:00
committed by GitHub
parent ade109d9e4
commit 4f9af6ba27
5 changed files with 319 additions and 0 deletions

View File

@@ -0,0 +1,29 @@
# example plugin config
name: Hawwwwt Tagger (Raw Python edition)
description: Python Hawwwwt tagging utility (using raw interface).
version: 1.0
url: http://www.github.com/stashapp/stash
exec:
- python
- "{pluginDir}/pyplugin.py"
interface: raw
tasks:
- name: Add hawwwwt tag to random scene
description: Creates a "Hawwwwt" tag if not present and adds to a random scene.
defaultArgs:
mode: add
- name: Remove hawwwwt tag from system
description: Removes the "Hawwwwt" tag from all scenes and deletes the tag.
defaultArgs:
mode: remove
- name: Indefinite task
description: Sleeps indefinitely - interruptable
# we'll try command-line argument for this one
execArgs:
- indef
- "{pluginDir}"
- name: Long task
description: Sleeps for 100 seconds - interruptable
defaultArgs:
mode: long