Guide

Install, update and remove plugins

Install a plugin from GitHub or by hand, switch it on, keep it up to date and take it off again.

Admins only Checked against v3.1.0 Updated Edit this page Report a problem

Liner notes

At a glance

Who
Admins only
Where
Settings › Plugins
You need
  • /app/plugins mounted as a volume, or installed plugins vanish when the container is recreated
  • The plugin's public GitHub repository address, or its folder

A plugin adds something DroppedNeedle doesn’t do on its own, such as another download source, a webhook for every play, or extra links on album pages. Installing one only stores its files. Nothing runs until you switch it on.

Warning

A plugin runs as its own program on your server, with the same access to files and the network as DroppedNeedle itself. It is not sandboxed. Only install plugins you trust: read the code, or trust the author.

Before you start#

  • Check that the compose file mounts a folder at /app/plugins, such as ./plugins:/app/plugins. Without it, installs disappear when the container is recreated.
  • Python plugins need nothing extra: the image includes python3.

Steps#

  1. Open the Plugins settings#

    Go to Settings › Plugins, in the System group.

  2. Paste the repository address#

    Paste the plugin’s address into Install from GitHub:

    • https://github.com/owner/repo takes the latest release, or the default branch when the repository has no releases.
    • https://github.com/owner/repo/releases/tag/v1.2.0 takes that release.
    • https://github.com/owner/repo/tree/some-branch takes that branch or tag as it is now.
    • https://github.com/owner/repo/commit/<sha> takes that commit.
  3. Press Preview#

    Nothing is written yet. The button reads Checking… while DroppedNeedle reads the repository.

    Result: a card shows the plugin’s name, version and author, the repository, release or branch, and the exact commit it would install.

  4. Read what it asks to do#

    Under This plugin asks to, the card lists what switching it on allows, worked out from the plugin’s manifest. Every plugin “Runs as its own program on your server, with the same file and network access as the server’s user account”. Other lines depend on what it does, such as “Downloads files for requests and hands them to the importer” or “Sees every play that gets scrobbled: artist, track, album and time”.

  5. Press I trust it, install#

    Or press Cancel to leave it. DroppedNeedle installs the exact commit you previewed, even if the repository has moved on since.

    Result: a toast reads Installed with the plugin’s name and “Enable it below when you are ready.”, and the plugin’s card appears in the list, switched off.

  6. Fill in its settings#

    The card shows the fields the plugin asks for. Secret ones, such as API keys, are masked.

  7. Switch it on and save#

    Turn on Enabled on the plugin’s card, then press Save.

    Result: the toast reads the plugin’s name and saved., the card shows Process: running, and its health badge reads Healthy.

Install a plugin by hand

Copy the plugin’s folder, with its plugin.toml at the top, into the host folder you mount at /app/plugins, then reload Settings › Plugins. The plugin appears switched off, and you go on from step 6. Folders whose names start with . or _ are never treated as plugins.

Update a plugin

Press Update on its card. The button is there only for plugins installed from GitHub. What it moves to depends on how you installed it:

  • From a plain repository address: to the newest release.
  • From a branch: to the branch’s newest commit.
  • From a tag or a commit: nowhere. Those pinned installs stay until you install another version.

The toast reads that it was updated to the new version, or “is already up to date.” Nothing updates on its own, and updating keeps the plugin’s settings and data.

Remove a plugin

Press the bin icon on its card (labelled “Remove” with the plugin’s name). The card asks “Remove this plugin?“. Press Remove, and the toast reads Plugin removed.

Removing deletes the plugin’s code. Its settings and its data folder stay, so installing it again picks up where you left off.

Bring a plugin across from v2

An upgrade from v2 carries a v2 plugin’s settings across, switched off. The plugin itself has to be ported to the v3 plugin API first: see Porting a v2 plugin. Install the ported version, then switch it on here.

Check it worked#

  • The plugin’s card shows Process: running and the health badge Healthy. Not configured next to it means a setting still needs filling in.
  • Its capabilities show as badges on the card, outlined when they are active.
  • A plugin that is a download source is also listed under Settings › Download Client › Plugin sources, and takes its place in Source priority there.
  • A plugin with its own settings panel shows a Plugin panel section on its card while it is switched on.

If something went wrong#

Each heading below is the message DroppedNeedle shows.

GitHub requests are paced. Try again in 3 minutes.

DroppedNeedle keeps under GitHub’s limit for servers without an account: a burst of 10 requests, then about 50 an hour, shared by plugin previews, installs, updates and the app’s own update check. The message says how long to wait, and nothing was sent.

Saved …, but it failed to load. See the error below.

The settings were saved, but the plugin didn’t start. The red box on its card says why. A plugin written for v2 shows, for example, acme-music: written for api_version 1; this DroppedNeedle reads api_version 2; see Porting a v2 plugin in PLUGINS.md.

Process: restarting, or the health badge reads Restarting or Error

The plugin crashed or stopped answering. DroppedNeedle restarts a crashed plugin after 1 second, doubling the wait up to 5 minutes, and restarts one whose calls time out three times in a row. Its last error shows on the card, and its own log lines are in the server log under its name: see Check health and read the logs.

Library write refused: …

A plugin that adds files to your library tried to write one it may not. A plugin can only add new files, never replace one, within a daily size and file count. The reason follows the colon.

Installed plugins are gone after recreating the container

/app/plugins isn’t mounted, so the plugins lived inside the container. Add a volume for it to the compose file and install them again. Their settings were kept, so they pick up where they left off.

Docs