github getmydia/mydia v0.20.0

one hour ago

Happy holidays, everyone! 53 pull requests since v0.19.0, across four betas (including the subtitle authorization fix from v0.19.1). The player brings a redesigned playback OSD with Liquid Glass on Apple platforms, true HDR/Dolby Vision EDR output on iOS 16+, redesigned 16:9 Continue Watching cards, and a refreshed Settings and Frosted look. On the server side, the built-in VPN now runs in its own isolated network namespace with split routing, TV libraries gain Smart Space automatic watched cleanup and bulk file renaming, movies respect minimum availability, and iroh upgrades to 1.6.0.

There are 3 new migrations. Read the upgrade notes before pulling.

Built-in VPN and downloads

  • Isolated VPN network namespace: Gluetun and tunneled rqbit now run inside a dedicated network namespace linked by pasta with an nft kill switch, leaving Mydia and iroh on the container's network so network_mode: host works alongside the built-in VPN and P2P direct paths stay intact, with OpenVPN root and host-network DNS fixes (#1557, #1559).
  • VPN split routing and standalone config: route Mydia's outbound traffic through the built-in VPN (or an external proxy URL) with per-category toggles for Indexers, Metadata, and Other under Admin › Settings › Proxy, failing closed when the tunnel or proxy leak check is down. VPN configuration moves to Admin › Settings › VPN and runs independently of the built-in torrent client, which gains a "Route torrent traffic through the VPN" toggle (MYDIA_TORRENT_THROUGH_VPN, default on) (#1548).
  • Gluetun reliability: automatically refreshes the VPN provider server list before starting Gluetun (enabling UPDATER_PERIOD=24h by default), surfaces OpenVPN TLS warnings in status details, and stops transient leak-check timeouts from falsely halting the built-in client (#1518, #1539).
  • Torrent file selection and tree: manual search results on movie and show pages now offer a "Choose files…" button for the built-in client to inspect the folder tree and untick seasons or episodes before grabbing, and the Downloads drawer Files panel now displays an expandable folder tree with folder-level selection, sizes, and save feedback (#1545, #1546).
  • Grab and cleanup fixes: falls back to GET on any 4xx/5xx error from redirect-probing HEAD requests (fixing indexers like RuTor that reject HEAD with 501), and deleting a show or download row mid-search or mid-grab no longer leaves orphaned torrents behind (#1516, #1547).

Library, media, and health

  • Smart Space and season deletion: optional (off by default) daily cleanup that moves watched TV seasons or episodes to Trash and unmonitors them after a configurable grace period and watched-by policy, with per-show overrides, Keep protection (added automatically on Trash restore), an upcoming cleanups page at /admin/smart-space, and a per-season delete action that protects shared multi-episode files (#1538).
  • Bulk library rename: new "Rename files" action on the Library Paths page previews how many files will change, sample old and new paths, and any conflicts, and cleans up orphaned sidecars (#1521).
  • Movie minimum availability: new Minimum Availability setting (globally and per movie) controls when automatic search may start looking for a movie (Announced, In cinemas, or Released), preventing grabs of unreleased titles (#1510).
  • Fatal health alerts: admins see a persistent alert banner in the sidebar and a card on the home dashboard whenever Mydia's core work is blocked (built-in client/VPN blocked or paused for low disk space, all enabled download clients or indexers unhealthy, or a missing local library root), debounced to ignore brief flaps (#1541).
  • Media request notifications: notify admins over ntfy, Discord, or custom webhooks when media requests are created, approved, or rejected, with per-notifier event filtering and a Requests filter in the activity feed (#1515).
  • Vulkan ICDs in Docker: installs mesa-vulkan-intel, mesa-vulkan-ati, and mesa-vulkan-swrast in the Alpine runtime image so ffmpeg Vulkan + libplacebo initializes cleanly (hardware Intel/AMD with Mesa lavapipe fallback) for Dolby Vision Profile 5 tonemapping (#1558).
  • Recommendations and changelog: "More like this" rails for age-restricted accounts backfill from TMDB's similar titles instead of showing only a couple of cards, and expanding an older release on /changelog stays open across LiveView updates (#1508, #1514).

Auth and security

  • Subtitle authorization: subtitle mutations on the media page and setSubtitleOffset in GraphQL require a role with media write access (#1513, also shipped in v0.19.1).
  • Last-admin lockout protection: prevents demoting the sole remaining admin, automatically restores the oldest local user to admin on boot if no admin exists, and adds mydia-cli user set-role <user> <role> (#1551).
  • SSO default role: new accounts created on first OIDC sign-in with no matching role or group claims now receive the guest role instead of user, configurable via auth.oidc_default_role / OIDC_DEFAULT_ROLE (guest, readonly, or user) (#1503).

Player

  • Playback OSD redesign: controls float over the video on a single eased scrim instead of a floating card, with an edge-to-edge scrubber (thumbless at rest, thumb on hover, drag, or TV focus), a two-line title block above the scrubber, a back disc in the top bar, a compact single-row bottom bar on touch phones, and Liquid Glass OSD surfaces on iOS and macOS (#1509, #1522, #1525, #1526, #1529).
  • iOS 16+ HDR EDR output and Apple Dolby Vision: renders video through mpv vo=gpu-next + libplacebo + MoltenVK on a native CAMetalLayer for true HDR10, HLG, and Dolby Vision EDR output with live UIScreen EDR headroom reporting, dry glass OSD compositing, and a Diagnostics fallback toggle (iOS 15 stays on the texture path); both macOS and iOS 16+ gpu-next surfaces now claim dolby_vision direct play (#1555, #1556, #1558).
  • Continue Watching and rail scrolling: Continue Watching cards switch to 16:9 artwork (320x180) with a bottom-edge overlaid progress bar and plain title/time-remaining text underneath; vertical mouse wheel and trackpad scrolling now always scrolls the page over horizontal rails, with hover previous/next arrow buttons on desktop and web (#1569, #1570).
  • Settings refresh and Frosted restyle: redesigned Settings layout with preview pickers for Theme and Material, a grouped Appearance section, compact switches and cleaner rows, a restyled Frosted mode across non-Apple platforms and Android TV, and backup management folded under "Manage backup" (#1497, #1505, #1506).
  • Linux GPU rendering and stability: restored hardware GPU rendering on Linux under Flutter 3.50, added a Rendering row (GPU / CPU (software)) and clearer dropped-frame counters to the desktop stats panel, and fixed a GTK-thread deadlock on immediate close (#1540, #1544).
  • Stash scenes: added previous/next scene navigation and Up Next auto-advance through the list a scene was opened from (library, search, or home), advancing only when the scene finishes (#1524, #1528).
  • macOS fixes and Dev track: moved window_manager (0.7) and screen_retriever (0.4) to the native API, fixed exiting fullscreen during playback, stopped the embedded mpv view from swallowing clicks, keys, and the Dock icon, and added the Dev update track on macOS via Sparkle (#1499, #1511, #1523, #1527).

Website and translations

  • mydia.dev updates: added a Stable / Beta / Dev track switcher on the download page with /download/<platform>?track=beta|dev redirects, in-browser 64-character alphanumeric secret generation on /server/#install, and an animated WebGL glass-pane hero shader (#1531, #1532, #1533, #1534, #1535).
  • Translations: updated server, error, and player translation catalogs from Weblate and added a CI guard rejecting fuzzy .po entries that carry translated text (#1452, #1553, #1554, #1572).

Under the hood

  • Upgraded iroh and iroh-relay to 1.6.0 across the server, player, and cae1-1 relay, adding relay protocol v3 (GHSA-6c8f-xpqm-ff3v) and the noq forged-packet crash fix (GHSA-58v7-prvq-5462) while maintaining compatibility with pre-1.6 clients (#1571).
  • Added real-playback Linux E2E tests (integration_test/playback_test.dart), a Test / macOS native CI job running RunnerTests, Weblate PR auto-merge, macOS codesign timestamp retries, and narrower dev build index locking (#1517, #1519, #1530, #1544).

Upgrade notes

  • VPN configuration moved (#1548, #1557): migration 20261128174841_move_vpn_config_settings moves database built_in_torrent.vpn_* rows to vpn.*. YAML built_in_torrent.vpn_* keys are now ignored (logged with an error, a warning on the VPN settings row, and a health alert naming the new key). PGID=65531 is reserved alongside 65530, setting MYDIA_VPN_* now starts Gluetun even when MYDIA_TORRENT_ENABLED=false, and internal Gluetun control/proxy ports moved to 47800/47801.
  • SSO default role (#1503): first-time OIDC accounts without role or group claims now get the guest role instead of user. Set OIDC_DEFAULT_ROLE=user (or auth.oidc_default_role) to keep the previous behaviour.
  • Movie minimum availability (#1510): migration 20261123155008_add_minimum_availability adds minimum_availability to media_items. Fresh installs default to released; existing installs that already have movies are automatically seeded with announced so existing search behaviour is preserved until you change the setting.
  • Smart Space (#1538): migration 20261127191049_create_smart_space_tables creates smart_space_overrides and smart_space_keeps. The feature is off by default.

Don't miss a new mydia release

NewReleases is sending notifications on new releases.