You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
1. Configure your selected Docker container with the port, volume, and environment settings from the *original container documentation* here **[linuxserver/beets](https://hub.docker.com/r/linuxserver/beets"Beets Docker container")**
12
+
2. Add the **DOCKER_MODS** environment variable to your `compose.yml` file or `docker run` command, as follows:
13
+
-`DOCKER_MODS=linuxserver/mods:beets-httpshell`
14
+
3. Map the HTTP API port so it is accessible from outside the container. The default port is `5555` (configurable via `HTTPSHELL_PORT`). Add `5555:5555` to your port mappings:
Use beets-httpshell as a Lidarr custom script to automatically import downloads. In Lidarr, go to **Settings → Connect → +** and add a **Custom Script** with the path to the script below.
185
+
Use remote beets HTTP server in Lidarr's external content management script to automatically import downloads. In Lidarr, go to **Settings → Media Management → Importing → +** and add a **Import Script Path** with the path to the script below.
193
186
194
187
Create the script at a path accessible to Lidarr (e.g., `/config/scripts/beets-import.sh`):
195
188
@@ -203,7 +196,7 @@ fi
203
196
204
197
curl -X POST --fail-with-body \
205
198
-H "Content-Type: application/json" \
206
-
-d "[\"$lidarr_sourcepath\"]" \
199
+
-d "[\"-q\",\"$lidarr_sourcepath\"]" \
207
200
'http://beets:5555/import?mode=block'
208
201
209
202
if [ $?-ne 0 ];then
@@ -212,7 +205,7 @@ if [ $? -ne 0 ]; then
212
205
fi
213
206
```
214
207
215
-
> **Note:** The script uses `?mode=block` so Lidarr waits for the import to complete before proceeding. Without it, the default `parallel` mode would also work but allows concurrent imports. Adjust the hostname (`beets`) and port (`5555`) to match your setup.
208
+
> **Note:** The script uses `?mode=block` so Lidarr waits for the import to complete before proceeding. Without it, the default `parallel` mode would also work but allows concurrent imports and import changes may not be detected by Lidarr sync. Adjust the hostname (`beets`) and port (`5555`) to match your setup.
0 commit comments