Media Acquisition Manager for Jellyfin: What It Is and How to Install It

media-acquisition-manager-for-jellyfin.md
title Media Acquisition Manager for Jellyfin: What It Is and How to Install It
date
author VahaC
read 12 min read
category Self-Hosting
tags #container #Docker #Homelab #Jellyfin #Media Acquisition Manager #Self-hosted
Media Acquisition Manager for Jellyfin

Media Acquisition Manager for Jellyfin is a self-hosted web app I built for people who choose every release by hand and want to see, before clicking Download, what the library already holds. It puts your Jellyfin library and the releases of your torrent indexers on one search page, sends the release you pick to qBittorrent or Transmission in the right folder, follows the download, and helps you clean up duplicates without ever deleting a file behind your back. 🎬

This is the first part of a five-part series on Media Acquisition Manager for Jellyfin. It explains what the app does and why, then installs it step by step, up to a library that shows the measured facts of every file. The next parts connect your tracker and download client, walk through daily use, clean up duplicates safely and connect Claude through MCP.

Why I Built Media Acquisition Manager 🤔

My setup is a typical homelab one: Jellyfin serves the library, Prowlarr talks to the trackers, qBittorrent downloads, and everything lives on one media mount. Before MAM, getting one film meant four tabs: Jellyfin to see whether I had it, Prowlarr to read release titles, qBittorrent to pick the right category, and a file manager weeks later, when I found two copies and wondered which one was safe to delete.

The *arr stack (Radarr, Sonarr) solves a different problem. It is built around automation: you add a title, a quality profile decides, and the release is grabbed, imported and renamed. I care about the audio track, the cut and the subtitles, and I keep collection folders like Guy Ritchie. Collection that I don’t want renamed. Media Acquisition Manager starts from the other end: nothing is downloaded unless you click, and nothing in your library is renamed or reorganized. If you have ever moved qBittorrent downloads to another storage location, you know how fragile paths and seeding are; MAM was designed around exactly that fragility.

What Media Acquisition Manager for Jellyfin Does 🧰

  • 🔎 One search for library and releases. Type a title once; the Search page asks Jellyfin and every release source together and shows your copies above the releases you could get.
  • 🧾 Verified facts next to claimed facts. Every file is read with ffprobe: duration, resolution, codec, HDR, bit rate, every audio and subtitle track. A release title is marked as what it is, a claim, and the app never tells you which one is “better”.
  • 📥 Downloads that land in the right place. A destination is a qBittorrent category or a Transmission folder inside your library, and a release that would overwrite a different file already there is refused.
  • 📊 A Jobs page that follows every download, reading the client every 2 seconds and surviving restarts.
  • 🧹 Duplicates sorted honestly: hardlinks, byte-identical copies, other copies of one film or episode, and possible matches. Different cuts or two episodes of one show are never “duplicates”.
  • ♻️ Replacement through a quarantine. The old copy moves aside only after the new file is verified and no torrent still seeds it, and it stays until you restore it or delete it. Off by default.
  • 💡 Recommendations from TMDb: missing parts of a collection, missing seasons, more by directors you collect, each with what your tracker carries. They never download by themselves.
  • 🔑 Tokens and AI assistants. Personal access tokens for scripts, and an MCP endpoint for Claude Code or Claude Desktop on your home network.
  • 🌐 English or Ukrainian, light or dark, and several users: the owner manages them, and each member sees their own jobs.

What the App Will Never Do 🛑

  • It never deletes a file because a download reached 100%.
  • It never renames, moves or reorganizes your library. Nested collection folders and multi-file torrents work as they are.
  • It never removes a torrent from your client. An old copy a torrent still seeds waits until you remove that torrent yourself.
  • The media folders are mounted read-only by default. Only replacement needs write access, and only the owner can switch it on, folder by folder.
  • Every destructive step belongs to the owner and asks first; deleting a file from the quarantine asks twice.

Prerequisites ✅

  • A Linux host (a VM, an LXC or bare metal), amd64 or arm64, with Docker and Docker Compose 2.24 or newer (docker compose version). New to Compose? Start with my Docker beginner’s guide to containers, volumes and Compose. On Proxmox, an LXC with Docker works well, and that is how I run mine; see creating a Proxmox LXC from the web UI.
  • Jellyfin 10.9 or later, reachable from that host, and an admin account to create an API key.
  • Your media folders on that host, and the path Jellyfin sees them at, for example /media/movies.
  • For Part 2: Prowlarr or Jackett serving your tracker over Torznab, and qBittorrent 4.4.1+ (5.2+ for replacement) or Transmission 4.0+. TMDb is optional.

I run MAM with Jellyfin 12.2, Prowlarr 2.6 and qBittorrent 5.2, and tested a clean install with Jackett and Transmission 4.1. The first tracker it was built against is Toloka, a Ukrainian tracker, reached only through the standard Torznab feed.

Step 1 — Get the Compose File 📄

The source is on GitHub and the image is vahac/media-acquisition-manager on Docker Hub: latest is the newest release, 0.5.0 a fixed one, 0.5 the newest patch of that minor version. On the server that will run MAM, download the three files it needs, the compose file, the update script and the settings template:

mkdir -p ~/mam && cd ~/mam
curl -fsSLO https://raw.githubusercontent.com/VahaC/Media-Acquisition-Manager/main/docker-compose.yml
curl -fsSLO https://raw.githubusercontent.com/VahaC/Media-Acquisition-Manager/main/deploy.sh
curl -fsSLO https://raw.githubusercontent.com/VahaC/Media-Acquisition-Manager/main/.env.example

Step 2 — Mount Your Media Folders 📁

Open docker-compose.yml. Without its long comments, and with the media line uncommented, it looks like this:

services:
  app:
    image: vahac/media-acquisition-manager:${APP_TAG:-latest}
    container_name: media-acquisition-manager
    restart: unless-stopped
    ports:
      - "${APP_BIND_ADDRESS:-127.0.0.1}:${APP_PORT:-8118}:8118"
    env_file:
      - path: .env
        required: false
    environment:
      MAM_Storage__DataDirectory: /data
    volumes:
      - mam-data:/data
      - /mnt/media:/media:ro

volumes:
  mam-data:

Change /mnt/media to the folder on your host that holds your libraries; /media is the path inside the container.

⚠️ Mount the media at the same path Jellyfin sees it. If Jellyfin lists a film at /media/movies/Alien (1979)/Alien.mkv, MAM must see that file at the same path. Then you need no path mappings for Jellyfin. If you can’t match the paths, Step 7 shows the mapping that fixes it.

Keep :ro at the end: with a read-only mount the app can’t write to your media. Only replacement needs write access (Part 4). Don’t mount the folders a second time for your download client’s view (/downloads, say); Part 2 maps those paths instead.

The app runs as user 10001, which reads files everyone may read (the usual 644 and 755). If your media isn’t world-readable, add its group with group_add: ["<gid>"]. Pasting the edited file into the Docker Compose Validator catches an indentation mistake before Docker does.

Step 3 — Optional Settings in .env ⚙️

Every setting is optional: the app runs without a .env at all. To change one, run cp .env.example .env and set only what you need:

  • APP_TAG — the image tag. Pin a release, such as 0.5.0, to update only when you choose to.
  • APP_BIND_ADDRESS — 127.0.0.1 by default, so only the server itself can reach the app (Step 5 shows how to open it from your computer); 0.0.0.0 opens it to your network.
  • APP_PORT — the host port, 8118 by default.
  • PUID and PGID — leave them unset for now; they are only for replacement (Part 4).

The secrets MAM_Encryption__Key and MAM_Jwt__Secret stay blank: the app generates them on the first start into /data/.secrets.

⚠️ Back up .secrets together with mam.db. The encryption key seals the stored passwords and API keys of your integrations. Lose it, and you have to enter every credential again.

Step 4 — Start the Container ▶️

Start the app and check its state:

docker compose up -d
docker compose ps

The container reports healthy once the app answers and its SQLite database is open and fully migrated, usually within seconds. If it stays unhealthy, docker compose logs app shows why; the first lines, starting with [entrypoint], describe the container’s own start.

Step 5 — Create the Owner Account 👤

By default the port is published only on the server’s own loopback address, 127.0.0.1, so a browser on another computer can’t reach it yet. Pick one way to open it:

Option A — SSH tunnel (best for a remote server or an LXC). Nothing is exposed to the network. On your own computer, run:

ssh -L 8118:127.0.0.1:8118 user@your-server

Keep that session open and browse to http://localhost:8118 on your computer: the tunnel forwards it to the server.

Option B — open it to your LAN. Set APP_BIND_ADDRESS=0.0.0.0 in .env, run docker compose up -d again, and browse to http://<server-ip>:8118, such as http://192.168.1.10:8118. The app speaks plain HTTP, so keep it on a network you trust or behind a reverse proxy with HTTPS; my post on secure remote access to a home server compares the options. Pick this one if you plan to connect an AI assistant (Part 5).

Option C — Docker on the computer you sit at. Browse to http://localhost:8118 directly.

Whichever way you open it, the first page you see is Create the owner account.

⚠️ Do this right away. Until the owner exists, whoever opens the app first becomes the owner. The password needs at least 8 characters and there is no email reset, so store it in your password manager. The Secure Password and Passphrase Generator gives you a strong one.

Once signed in, the owner adds family members under the user menu → Users, and each user picks the language and the theme on Profile.

Step 6 — Allow the Media Folders 🔓

Mounting the media is not enough for the app to read it. Open the user menu → Media folders, click Add folder, type /media and click Save.

⚠️ Until you add a folder, the app reads no file. The Library page then says that file inspection is off. This is deliberate: MAM reads only inside the folders the owner allows, and refuses any link that leads out of them.

Leave Replace copies after verification, lower on the same page, switched off.

Step 7 — Connect Jellyfin 🎞️

In Jellyfin, open Dashboard → API Keys and create a key named MAM. Then in MAM:

  1. Open the user menu → Integrations → Add integration.
  2. Service: Jellyfin. Address: http://192.168.1.10:8096, with its base path if it has one. API key: the key you just created.
  3. Path mappings: only if Jellyfin sees your media under another path. Click Add mapping and put Jellyfin’s path in Path in Jellyfin (/data/media) and the app’s in Path in this app (/media).
  4. Click Test connection. It answers with a sentence such as “Connected to Jellyfin 12.2.0 (My media).”
  5. Click Add integration.

Credentials are stored encrypted and never shown again; a Jellyfin older than 10.9 is refused, with the reason.

Step 8 — Run the First Sync with Refresh All 🔄

The last step is the first sync: open Library and click Refresh all at the top. It runs three steps one after another:

  1. Sync reads every Jellyfin library: movies, series, seasons and episodes. It replaces what the app stored only after reading all of it, so a failed sync changes nothing.
  2. Scan walks the allowed media folders for video files no library reported.
  3. Inspect reads each file with ffprobe, two at a time, and hashes only the files that could be copies of each other.

The Sources card shows how far each step got. Nothing in Jellyfin or on disk is moved, renamed or changed.

How to Confirm the Install Works ✔️

  • docker compose ps shows the container as healthy.
  • On the server, curl -s http://localhost:8118/api/health/ready answers "status":"Healthy".
  • Library lists your movies and series. Open a card: each version shows its files with duration, resolution, codec, dynamic range and every audio and subtitle track.
  • The Sources card says how much room the files take, each file counted once however many hardlinks lead to it.

Troubleshooting 🛠️

Most problems with a new install are paths or permissions:

  • “Files without an app path” — Jellyfin reports paths the app can’t see. Fix the mount in Step 2 or the path mappings in Step 7, then Refresh all.
  • “Files in no library” — click Show files: each file says why a library most likely skips it, such as an extras folder or a file added after Jellyfin’s last scan. The owner can Ignore files that aren’t media.
  • Files that couldn’t be read — usually permissions for user 10001; see group_add in Step 2.
  • Container unhealthy — docker inspect media-acquisition-manager shows the failing check’s reason under State.Health.
  • Can’t open it from another computer — the port is on 127.0.0.1 by default; use the SSH tunnel or APP_BIND_ADDRESS from Step 5.

Backups and Updates 💾

Everything the installation keeps lives in /data on the mam-data volume: mam.db and .secrets/. Back them up together, with the container stopped, from the folder with docker-compose.yml on the server, and add the archive to your regular NAS backup with ZFS, Borg or restic:

docker compose stop app
docker run --rm --volumes-from media-acquisition-manager -v "$PWD:/backup" alpine tar czf /backup/mam-data.tgz -C /data .
docker compose start app

To update MAM, run bash deploy.sh from the same folder. It pulls the tag APP_TAG names, recreates the container and waits until it reports healthy; the database migrates on startup.

Who Media Acquisition Manager Is For 🎯

It fits you if you pick releases yourself, care about audio tracks and cuts, keep a library you organized by hand, and want a safe way to clean up duplicates. If you want a set-and-forget pipeline that grabs everything by quality profile, Radarr and Sonarr are still the better tool, and they can run beside MAM. As with any torrent tooling, download only what you have the right to.

What’s Next in This Series 🗺️

Your library now shows verified file facts. The next four parts take Media Acquisition Manager for Jellyfin to daily use:

  • Part 2: connecting Prowlarr or Jackett and qBittorrent or Transmission, and setting up download destinations.
  • Part 3: the daily workflow: search, compare, download, follow, and recommendations.
  • Part 4: duplicates and safe replacement through the quarantine.
  • Part 5: personal access tokens, the API and connecting Claude through MCP.

If the app doesn’t work as described here, open an issue on GitHub.

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.