github ifsvivek/nocturne server-v0.8.0
NOCTURNE server 0.8.0

one hour ago

NOCTURNE server becomes a media server of its own: it scans your folders, fetches details and artwork, converts what a device cannot play, serves the Jellyfin apps with no Jellyfin installed, and gives every person in the house their own account and role.

Added

  • users with roles. Owner, Administrator, Library manager, Member, Restricted / Kids and Guest are built in, and you can make your own roles from permissions. Each user has their own library access, parental limit and request quota; you can disable, sign out, reset or delete them, and invite people with a one-time link where they choose their own password.
  • Jellyfin apps sign in with each person's own NOCTURNE server account (password, Quick Connect or their own API key) and see only their libraries within their parental limit, with their own watched, resume and favourites. Remote control reaches only your own devices unless your role allows everyone's. The gateway account of 0.7 becomes a user of its own, and its phones and TVs stay signed in.
  • Dashboard: new Users, Roles, Devices, Activity, Scheduled tasks, Backup & restore, Logs, Notifications and Server info pages, and a Profile page where everyone changes their password and manages their API keys and devices.
  • Activity log of sign-ins, failed sign-ins, playback, downloads, requests and every settings, user and role change.
  • Backup & restore: the whole server as one file (no tokens or keys), restorable on a fresh server instead of the first-run setup.
  • Notifications by webhook, ntfy or Discord when a request is approved, a download finishes or something fails; the address stays in the keyring.
  • Gateway: the official Jellyfin phone apps work with a NOCTURNE server that has no Jellyfin server as a source. The gateway serves the Jellyfin web client they load from /web out of a local copy: web_dir under [gateway], else the distribution's jellyfin-web package (now an optional dependency of nocturne-server), else a copy downloaded with Download jellyfin-web on the dashboard's Gateway page (a pinned release from Jellyfin's download server, checked by size and sha256, kept in the server's data folder). Without a local copy it is fetched from a Jellyfin source as before. The Gateway page and GET /api/v1/gateway/status say which copy is in use.
  • The server has its own version and its own releases (tags server-vX.Y.Z, packages nocturne-server in the pacman, apt and dnf repositories, the tarball nocturne-server-<version>-x86_64-linux.tar.gz). /api/v1/health (no sign-in needed) and /api/v1/status report version and api_version, the API generation (1); it is raised only for a breaking API change, and the app explains a server outside the generations it speaks. nocturne-server --version prints both.
  • nocturne-server update reads the server's own update manifest (update/server-stable.json). A per-user install (the tarball under a prefix you can write, such as PREFIX=~/.local) downloads, verifies the signature and replaces itself, then restarts a running service; a package install prints the package manager's command.
  • Library folders are scanned for what is already in them. Adding a library (and Scan on the Storage page, Scan folders on the Library page, and every 6 hours) walks the folder read-only, matches each title folder by its .nfo ids or by name and year at the metadata providers, and adds the titles (monitored unless the library says otherwise) with their files recorded as on disk, so only missing episodes are searched and found files are upgraded only per profile, never replaced, moved or deleted. Folders nothing matched are listed under Library > Unmatched for a match by hand.
  • The gateway serves the library folders from the server's own index: Jellyfin apps browse them with details, posters, backdrops, logos, cast with photos and episode stills from TMDB (with your key), TVmaze and MusicBrainz, cached in the server's data folder (never next to your media), and stream information from ffprobe when it is installed. A title on a Jellyfin server and in a library folder is one item with two versions.
  • Quality profiles: a required term can list alternatives with | (for example dual|multi audio|eng); a release needs only one of them.
  • POST /api/v1/gateway/client-key gives a NOCTURNE app its own gateway key, so the app browses the server's merged catalog without the gateway password.

Fixed

  • The parental limit applies to library folders: their titles carry an age rating from the .nfo (<mpaa>, <certification>) or from TMDB (US certification first, with your key; refresh online details for titles fetched before). Each user has "Allow unrated items" (movies and series without a known rating), off by default for Restricted / Kids and anyone with a parental limit, on otherwise; allow_unrated in the user API (null returns to the default).
  • Library scans read movie.nfo (or <folder>.nfo) for the only video in a folder also when the file name has no year (Folder/feature.mkv), so its ids match the title instead of listing it under Unmatched.
  • nocturne-server status | head (any command whose output goes to a pipe that closes early) ends quietly instead of panicking with "Broken pipe".
  • A library whose folder is the same as, inside or above another library's folder is refused (409) instead of scanning the same files into two libraries.
  • PUT /api/v1/config merges the body into the current configuration: sections and keys it leaves out keep their values (an empty body used to reset every section and stop every module); null removes a key.
  • A show whose episode files are named "Show (Year) - S01E01 - Title" (Sonarr's default) is no longer called "Show (Year)" with the year in its name; library scans found no such show at the metadata providers and listed it under Unmatched.
  • Gateway: local files play on every client, also without any Jellyfin server. PlaybackInfo reads the file with ffprobe (codecs, resolution, HDR type, bit rate, audio and subtitle tracks with languages, sidecar subtitles) and decides direct play, remux or transcode from the client's device profile as a Jellyfin server does. Transcodes are HLS (fMP4 or MPEG-TS segments) from the system ffmpeg: seeking restarts ffmpeg at the asked segment, audio track choice, HDR10/HLG tone-mapped to SDR, image subtitles burned in, the client's bit rate and size limits. Text subtitles (embedded or next to the file) are served as WebVTT, SRT or ASS, and as the JSON track events (Stream.js) the Jellyfin web client renders itself. ffmpeg is optional and never bundled; without it local files play only where the client plays them directly. [gateway.transcode] in server.toml: enabled (default on), hwaccel = none (default), vaapi, nvenc or qsv (falls back to software when the encoder fails), max_transcodes (2), threads (ffmpeg threads per transcode, default half the CPUs, at least 2), cache_mb (10240) and cache_dir (default ~/.cache/nocturne/server/transcode). A transcode stops when the client stops, after 2 minutes without requests or on DELETE /Videos/ActiveEncodings; ffmpeg pauses when far ahead of the client, and runs at a lower priority (nice 10).
  • Gateway: a subtitle request for a local file no longer answers with the whole video file.
  • Gateway: a restart or a change of its listener settings no longer fails with "address already in use" on its own port and comes back only seconds later; the old listener is closed before the new one binds, and a bind that finds the port busy retries briefly.

Don't miss a new nocturne release

NewReleases is sending notifications on new releases.