mirror of
https://github.com/9001/copyparty.git
synced 2025-08-18 01:22:13 -06:00
20 lines
1 KiB
Markdown
20 lines
1 KiB
Markdown
standalone programs which are executed by copyparty when an event happens (upload, file rename, delete, ...)
|
|
|
|
these programs either take zero arguments, or a filepath (the affected file), or a json message with filepath + additional info
|
|
|
|
> **note:** in addition to event hooks (the stuff described here), copyparty has another api to run your programs/scripts while providing way more information such as audio tags / video codecs / etc and optionally daisychaining data between scripts in a processing pipeline; if that's what you want then see [mtp plugins](../mtag/) instead
|
|
|
|
|
|
# after upload
|
|
* [notify.py](notify.py) shows a desktop notification
|
|
* [discord-announce.py](discord-announce.py) announces new uploads on discord using webhooks
|
|
* [reject-mimetype.py](reject-mimetype.py) rejects uploads unless the mimetype is acceptable
|
|
|
|
|
|
# before upload
|
|
* [reject-extension.py](reject-extension.py) rejects uploads if they match a list of file extensions
|
|
|
|
|
|
# on message
|
|
* [wget.py](wget.py) lets you download files by POSTing URLs to copyparty
|