metube: FLAC preset and audio dir; lidarr: Tubifarry notes

- metube: YTDL_OPTIONS / YTDL_OPTIONS_PRESETS passthrough with a
  "Video + FLAC" preset, AUDIO_DOWNLOAD_DIR defaulting to /downloads/audio
- lidarr: document the Tubifarry plugin (pr-plugins image) for YouTube
  downloads

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
code
2026-11-13 17:25:12 +00:00
co-authored by Claude Opus 5.5
parent 3f23f5d003
commit afba511446
4 changed files with 27 additions and 2 deletions
+15 -1
View File
@@ -48,7 +48,7 @@ Lidarr doesn't natively import Spotify playlists. Use a community tool like [Spo
| Variable | Description | | Variable | Description |
|---|---| |---|---|
| `LIDARR_IMAGE` | Container image (default: `ghcr.io/hotio/lidarr:release`) | | `LIDARR_IMAGE` | Container image (default: `ghcr.io/hotio/lidarr:release`). Use `ghcr.io/hotio/lidarr:pr-plugins` for plugins such as Tubifarry |
| `LIDARR_RESTART` | Restart policy (default: `unless-stopped`) | | `LIDARR_RESTART` | Restart policy (default: `unless-stopped`) |
| `LIDARR_PORT` | Published port for the web UI (default: `8686`) | | `LIDARR_PORT` | Published port for the web UI (default: `8686`) |
| `VOL_PATH` | Base path for persistent data volumes (default: `/data`) | | `VOL_PATH` | Base path for persistent data volumes (default: `/data`) |
@@ -93,6 +93,20 @@ docker run -d \
- **Layout:** `/data/media/downloads/prowlarr` (qBittorrent category `prowlarr`), `/data/media/music` (Lidarr root, Jellyfin's `/music` library). - **Layout:** `/data/media/downloads/prowlarr` (qBittorrent category `prowlarr`), `/data/media/music` (Lidarr root, Jellyfin's `/music` library).
- In the qBittorrent download client settings, set **Category** to `prowlarr`. - In the qBittorrent download client settings, set **Category** to `prowlarr`.
### Tubifarry plugin (download from YouTube)
[Tubifarry](https://github.com/TypNull/Tubifarry) lets Lidarr search Spotify's catalog and download the audio from YouTube (it can also use Soulseek via slskd). Lidarr then tags and imports the albums like any other download.
1. Back up `${VOL_PATH:-/data}/lidarr/config`. The plugins image is a pre-release branch of Lidarr.
2. Set `LIDARR_IMAGE=ghcr.io/hotio/lidarr:pr-plugins` (in Dockhand or `sample.env`) and redeploy.
3. In Lidarr, go to **System → Plugins**, install `https://github.com/TypNull/Tubifarry` and restart Lidarr when asked.
4. **Settings → Indexers → Add**, then choose **Tubifarry** (under **Other**, at the bottom of the list).
5. **Settings → Download Clients → Add**, then choose the Tubifarry YouTube client and set its download path to `/media/downloads/tubifarry` so it stays on the shared media disk.
- Check the Tubifarry release notes for the minimum Lidarr version it needs.
- YouTube audio is lossy at the source. Converting it to FLAC changes the format only; it adds no detail.
- To go back, set `LIDARR_IMAGE` to `ghcr.io/hotio/lidarr:release` again. If the config won't load, restore the backup, since the plugins branch may have upgraded the database.
## Dockhand Stack, Deploy from Git ## Dockhand Stack, Deploy from Git
- **Cookbooks Repository** - **Cookbooks Repository**
+6 -1
View File
@@ -25,6 +25,9 @@ MeTube is a self-hosted web UI for yt-dlp. Paste a video or playlist URL from Yo
| `METUBE_CONTAINER_NAME` | Container name shown in Dockhand / `docker ps` (default: `metube`) | | `METUBE_CONTAINER_NAME` | Container name shown in Dockhand / `docker ps` (default: `metube`) |
| `METUBE_RESTART` | Restart policy (default: `unless-stopped`) | | `METUBE_RESTART` | Restart policy (default: `unless-stopped`) |
| `METUBE_PORT` | Published port for the web UI (default: `8081`) | | `METUBE_PORT` | Published port for the web UI (default: `8081`) |
| `METUBE_YTDL_OPTIONS` | yt-dlp options applied to **every** download, as one-line JSON (default: blank = MeTube's default `{}`) |
| `METUBE_YTDL_OPTIONS_PRESETS` | Named yt-dlp option bundles, picked per download under **Advanced Options** in the UI, as one-line JSON. Ships with a `Video + FLAC` preset |
| `METUBE_AUDIO_DOWNLOAD_DIR` | Container path for audio-only downloads (default: `/downloads/audio`, i.e. `/data/media/downloads/metube/audio` on the host). Keep it under `/downloads` so it stays on the shared media disk |
| `METUBE_MEDIA` | Shared media root on the host (default: `/data`, so files land in `/data/media/downloads/metube`). Must be the same root Lidarr, Jellyfin, etc. use | | `METUBE_MEDIA` | Shared media root on the host (default: `/data`, so files land in `/data/media/downloads/metube`). Must be the same root Lidarr, Jellyfin, etc. use |
`UID`/`GID`/`UMASK` are fixed at `1000`/`1000`/`002` (same as the other media apps) in the compose file so downloaded files are owned by your normal user. Many more options (`DARK_MODE`, `YTDL_OPTIONS`, `OUTPUT_TEMPLATE`, `DEFAULT_THEME`, …) are listed in the upstream README. `UID`/`GID`/`UMASK` are fixed at `1000`/`1000`/`002` (same as the other media apps) in the compose file so downloaded files are owned by your normal user. Many more options (`DARK_MODE`, `YTDL_OPTIONS`, `OUTPUT_TEMPLATE`, `DEFAULT_THEME`, …) are listed in the upstream README.
@@ -51,6 +54,7 @@ docker run -d \
-e UID=1000 \ -e UID=1000 \
-e GID=1000 \ -e GID=1000 \
-e UMASK=002 \ -e UMASK=002 \
-e AUDIO_DOWNLOAD_DIR=/downloads/audio \
-p 8081:8081 \ -p 8081:8081 \
-v ${METUBE_MEDIA:-/data}/media/downloads/metube:/downloads \ -v ${METUBE_MEDIA:-/data}/media/downloads/metube:/downloads \
--network proxy \ --network proxy \
@@ -60,7 +64,8 @@ docker run -d \
## Additional Notes / Gotchas ## Additional Notes / Gotchas
- **Importing music into Lidarr.** MeTube writes to `/data/media/downloads/metube`, which Lidarr sees as `/media/downloads/metube`. In Lidarr go to **Wanted → Manual Import**, pick that folder, match the tracks to an artist/album and import. Because both folders are on the same `/data/media` filesystem, Lidarr hardlinks the files (enable **Settings → Media Management → Use Hardlinks instead of Copy**) instead of copying them. - **Importing music into Lidarr.** MeTube writes to `/data/media/downloads/metube`, which Lidarr sees as `/media/downloads/metube`. Audio-only downloads go to the `audio` subfolder. In Lidarr go to **Wanted → Manual Import**, pick `/media/downloads/metube/audio` (or the parent folder for audio extracted by the `Video + FLAC` preset), match the tracks to an artist/album and import. Because both folders are on the same `/data/media` filesystem, Lidarr hardlinks the files (enable **Settings → Media Management → Use Hardlinks instead of Copy**) instead of copying them.
- **Video and FLAC in one download.** Pick a video format, open **Advanced Options** and choose the `Video + FLAC` preset. yt-dlp keeps the video (`keepvideo`) and also extracts a FLAC next to it. To do this for every download instead, move the JSON from `METUBE_YTDL_OPTIONS_PRESETS` into `METUBE_YTDL_OPTIONS` (without the preset name wrapper). Don't use it with an audio-only format: MeTube already extracts audio there. With `keepvideo`, yt-dlp may also leave the separate video/audio stream files (`*.f137.mp4`, `*.f251.webm`) beside the merged file.
- **Don't point MeTube straight at `/media/music`.** Lidarr only recognizes files inside its `Artist/Album/` layout, so loose MeTube files there show up as unmapped instead of being imported. - **Don't point MeTube straight at `/media/music`.** Lidarr only recognizes files inside its `Artist/Album/` layout, so loose MeTube files there show up as unmapped instead of being imported.
- Create the folder as user 1000 first (`sudo mkdir -p /data/media/downloads/metube && sudo chown -R 1000:1000 /data/media/downloads/metube`). MeTube runs as UID/GID 1000 to match the other media apps. - Create the folder as user 1000 first (`sudo mkdir -p /data/media/downloads/metube && sudo chown -R 1000:1000 /data/media/downloads/metube`). MeTube runs as UID/GID 1000 to match the other media apps.
- MeTube has no built-in authentication — put it behind an auth layer (NPM access list, Authelia, etc.) if exposed publicly. - MeTube has no built-in authentication — put it behind an auth layer (NPM access list, Authelia, etc.) if exposed publicly.
+3
View File
@@ -9,6 +9,9 @@ services:
- UID=1000 - UID=1000
- GID=1000 - GID=1000
- UMASK=002 - UMASK=002
- AUDIO_DOWNLOAD_DIR=${METUBE_AUDIO_DOWNLOAD_DIR:-/downloads/audio}
- YTDL_OPTIONS=${METUBE_YTDL_OPTIONS:-}
- YTDL_OPTIONS_PRESETS=${METUBE_YTDL_OPTIONS_PRESETS:-}
ports: ports:
- "${METUBE_PORT:-8081}:8081" - "${METUBE_PORT:-8081}:8081"
networks: networks:
+3
View File
@@ -4,3 +4,6 @@ METUBE_CONTAINER_NAME=metube
METUBE_PORT=8081 METUBE_PORT=8081
METUBE_RESTART=unless-stopped METUBE_RESTART=unless-stopped
METUBE_MEDIA=/data METUBE_MEDIA=/data
METUBE_AUDIO_DOWNLOAD_DIR=/downloads/audio
METUBE_YTDL_OPTIONS=
METUBE_YTDL_OPTIONS_PRESETS={"Video + FLAC":{"keepvideo":true,"postprocessors":[{"key":"FFmpegExtractAudio","preferredcodec":"flac"}]}}