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.
184
+
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
185
194
186
Create the script at a path accessible to Lidarr (e.g., `/config/scripts/beets-import.sh`):
195
187
@@ -203,7 +195,7 @@ fi
203
195
204
196
curl -X POST --fail-with-body \
205
197
-H "Content-Type: application/json" \
206
-
-d "[\"$lidarr_sourcepath\"]" \
198
+
-d "[\"-q\",\"$lidarr_sourcepath\"]" \
207
199
'http://beets:5555/import?mode=block'
208
200
209
201
if [ $?-ne 0 ];then
@@ -212,7 +204,7 @@ if [ $? -ne 0 ]; then
212
204
fi
213
205
```
214
206
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.
207
+
> **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