Integrations

Jellyfin and Emby

Connect Jellyfin or Emby with automatic server detection, library roles, multi-season and extra-season linking, and bidirectional watched sync.

One video server connection in Bunko works seamlessly with both Jellyfin 10.x and Emby 4.x, providing direct playback, ownership badges, and two-way watched status synchronization.

Automatic server detection

Configure your server under Settings › Connections › Jellyfin / Emby:

  • Server URL (jellyfinUrl) — Address reachable from inside the Bunko container (for example http://jellyfin:8096).
  • API key (jellyfinApiKey) — Server API key generated in Jellyfin or Emby dashboard settings.
  • User (jellyfinUser) — The server user whose watched flags are synchronized (defaults to an administrator if left unset).
  • Auto-import (autoImportJellyfin, default true) — Automatically follows unambiguous matches from your indexed libraries (up to 8 new series per sync pass).

On every status check and sync pass (every 15 minutes or on demand via POST /api/jellyfin/sync), Bunko reads /System/Info (ProductName) to detect whether the endpoint is Jellyfin or Emby, exposes videoServer in settings, adapts interface labels, and generates matching "Open in…" web links.

Library roles

Bunko reads your server's virtual libraries (/Library/VirtualFolders) and assigns each library a role that you can override in Settings (jellyfinLibraries):

RoleAssigned to
animeTV or mixed libraries named for anime
seriesStandard TV show libraries
moviesStandard movie libraries
animationMovie libraries named for anime or animation
ignoreLibraries excluded from indexing, presence, and Library › Unlinked

Items inside ignore libraries are never indexed or imported.

Multi-season, episode, and extra-season linking

Bunko matches catalog works to Jellyfin/Emby items by sticky manual link (jellyfinLink), then ProviderIds.AniList / provider IDs, then unambiguous title and year matching. Because anime and long-running series often split seasons differently across catalogs and media servers, Bunko supports four linking modes via PATCH /api/tracked:

  • Season mode (order: "seasons", default) — Maps each catalog season to the matching season number on your server.
  • Absolute order (order: "absolute") — Flattens all episodes of the work and matches them sequentially against the server series.
  • Manual season mapping (jellyfinLink.seasons) — Assigns individual catalog seasons to specific { seriesId, season } pairs, even across separate Jellyfin/Emby series entries.
  • Episode-by-episode mapping (jellyfinLink.episodes) — Maps any work episode number directly to a specific Jellyfin/Emby item ID (or null when absent).

If a linked Jellyfin/Emby series contains additional seasons beyond the catalog work's seasons (such as OVAs, specials, or newly aired seasons not yet listed by the catalog), Bunko surfaces them as extra season tabs (jellyfinExtras) directly on the work sheet so you can play them without skewing your main progress counter.

Bidirectional watched sync

  • Server → Bunko — Every 15-minute sync pulls played flags for the configured user and advances progress.read forward (never resetting higher progress backward).
  • Bunko → Server — Finishing an episode in Bunko's player or updating your watched count (PATCH /api/tracked { id, read }) marks linked Jellyfin/Emby episodes played up to read and unplayed after read in the background, ensuring manual corrections stay consistent on the next sync.

Unlinked series and films

Any Jellyfin or Emby series or movie that Bunko cannot confidently match to a catalog work appears in Library › Unlinked, where you can link it manually, turn it into an off-catalog work, or ignore it.