All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
- Docker container initialization fixes for PUID/PGID handling — Thanks @CodeBormen:
- Backups failing on previous installations where
/data/backupsalready existed:/data/backupswas missing from theDATA_DIRSlist in the init script, causing the PUID/PGID ownership migration to skip the directory and leave it with incorrect permissions. - Container startup failure on upgrade when data directories reside on external mounts (NFS, SMB/CIFS, FUSE):
chownfailures underset -ewere crashing the container, breaking setups that worked fine on the previous image. Failures are now collected per-directory and reported as a consolidated warning; the container continues to start and Django reports at runtime if it cannot write a specific directory. - Upgrading users running as UID 102 (the internal PostgreSQL system user) instead of the expected UID 1000: the PUID/PGID auto-detect introduced in v0.21.0 read ownership from
/data/db, which was UID 102 in pre-PUID images, causing Django, file creation, and comskip to all run as the wrong user. PUID/PGID now default to 1000 (matching the original Django UID) rather than auto-detecting from data directory ownership.
- Backups failing on previous installations where
- Updated frontend npm dependencies to resolve 1 high-severity vulnerability:
- Updated
flattedto 3.4.1, resolving high unbounded recursion DoS in theparse()revive phase (GHSA-25h7-pfq9-p65f)
- Updated
- Updated
Djangoto 6.0.3 anddjango-celery-beatto 2.9.0, resolving new security vulnerabilities:- CVE-2026-25673: Potential denial-of-service vulnerability in URLField via Unicode normalization on Windows (March 3, 2026)
- CVE-2026-25674: Potential incorrect permissions on newly created file system objects (March 3, 2026)
- Configurable sidebar navigation ordering and visibility — Thanks @jcasimir
- Sidebar nav items can be reordered via drag-and-drop in Settings → UI Settings → Navigation.
- Individual nav items can be hidden from the sidebar using the eye toggle. Hiding an item preserves its position in the order.
- A "Reset to Default" button restores the role-appropriate default order and clears all hidden items.
- Order and visibility are saved per-user with optimistic updates and automatic rollback on failure. Changes appear in the sidebar immediately without a page reload.
- Admin users see a grouped navigation: flat items (
Channels,VODs,M3U & EPG Manager,TV Guide,DVR,Stats,Plugins) plus collapsibleIntegrations(Connections, Logs) andSystem(Users, Logo Manager, Settings) groups. TheSystemgroup cannot be hidden. - Non-admin users see
Channels,TV Guide, andSettings, with theSettingsitem not hideable.
- Unit tests for
NotificationCenter,NotificationCenterUtils, andM3URefreshNotificationcomponents, and for settings form componentsDvrSettingsForm,NetworkAccessForm,ProxySettingsForm,StreamSettingsForm,SystemSettingsForm,UiSettingsForm. — Thanks @nick4810 - Unit tests for DVR port resolution (
build_dvr_candidates) and selective Redis flush behavior in modular mode. — Thanks @CodeBormen - Floating video player improvements
- Title display: The channel, stream, or VOD title is now shown in the player header bar. Title is passed through from all preview entry points: channel table, stream table, stream connection card, guide, DVR, recording cards, recording details modal, VOD modal, and series modal.
- Persistent state: Size, position, volume level, and mute state are now saved across sessions using a single
dispatcharr-player-prefslocalStorage key. Size and position are restored on next open (clamped to the current viewport); volume and mute are restored when the player initialises.
- New Client Buffer proxy setting: new clients joining an active channel are now positioned a configurable number of seconds behind live rather than a fixed chunk count. The start position is determined by wall-clock chunk receive time (stored as a Redis sorted set alongside the buffer), so the buffer depth is consistent in seconds regardless of stream bitrate. Setting the value to
0starts clients at live with no buffer. Defaults to 5 seconds. Existing chunk-count gating for the first client connecting to a channel is unchanged. The setting is exposed in Settings → Proxy as "New Client Buffer (seconds)". - Channel table filter for channels that have stale streams: A new "Has Stale Streams" filter option in the channel table header menu highlights and filters channels containing at least one stale stream. Channels with stale streams are visually distinguished with an orange tint. The filter is mutually exclusive with "Only Empty Channels". - Thanks @JCBird1012
- "Next Highest Channel" numbering mode when creating channels from streams: A new
Next Highestoption is available alongsideProvider,Auto, andCustomwhen creating channels from the Streams table. Selecting it assigns channel numbers starting one above the current highest channel number; the next available number is fetched from the backend at selection time. (Closes #1000) — Thanks @JCBird1012 - TV Guide program cards now display richer metadata — Thanks @CodeBormen
- Season/episode badges (e.g.
S12E06) extracted from EPG<episode-num>elements,onscreenepisode strings (e.g.S12 E6,S3E21,S8 E8 P2/2), and as a last-resort fallback from description text patterns at parse time (3-tier pipeline). (Closes #1065) - Episode subtitle shown below the program title on guide cards; falls back to the short description when no subtitle is available.
- Status badges:
LIVE,NEW,PREMIERE, andFINALEsurfaced from EPG flags on both compact cards and the detail modal. - Program detail modal: Clicking any guide program opens a modal with full program details — poster/icon image, season/episode, subtitle, duration, categories, cast/director/writer credits, content rating, star ratings, production date, original air date, video quality, and external links to IMDb and TMDB where available. Detail data is fetched from a new
GET /api/epg/programs/{id}/endpoint backed by the newProgramDetailSerializer. Dummy/placeholder programs skip the fetch. - Real-time progress bars: Currently-airing programs show a green progress bar on their guide card that updates every second via direct DOM manipulation (no React re-renders).
- Channel name tooltip: Hovering the channel logo column shows the channel name.
- Season/episode badges (e.g.
- Sort icons added to the Group and EPG column headers in the Channels table, and to the Group column header in the Streams table. Clicking a sort icon cycles through ascending/descending/unsorted states. EPG sorting required a backend change (
epg_data__nameadded toChannelViewSet.ordering_fields); Group sorting was already supported by the API in both tables. (Closes #854) — Thanks @CodeBormen - DVR enhancements — Thanks @CodeBormen
- Stop Recording: A new Stop button (distinct from Cancel) cleanly ends an in-progress recording early and keeps the partial file available for playback. The API returns immediately; stream teardown and task revocation happen in a background thread to prevent 504 timeouts. When multiple recordings run simultaneously, stopping one only terminates that recording's proxy client by ID, leaving all others unaffected. (Closes #454)
- Extend Recording: In-progress recordings can be extended by 15, 30, or 60 minutes without interrupting the stream.
- Inline metadata editing: Title and description can now be edited directly in the recording details modal.
- Refresh artwork button: Manually re-run poster resolution on demand from the recording card.
- Multi-source poster resolution: Added pipeline querying EPG, VOD, TMDB, OMDb, TVMaze, and iTunes for richer recording artwork.
- Series rules for currently-airing episodes: Series rules now capture currently-airing episodes in addition to future scheduled ones. (Closes #473)
- Search and filter controls: Added search and filter controls to the recordings list.
- Stream generator throttling: Cached the
ProxyServersingleton reference per client and throttled Redis resource checks (1 s) and non-owner health checks (2 s), eliminating 3+ Redis round-trips per stream loop iteration. - Automatic crash recovery on worker restart: A
worker_readyCelery signal now firesrecover_recordings_on_startupautomatically when the worker starts, so recordings stuck in "recording" status are recovered without manual intervention.
- Account expiration tracking and notifications for M3U profiles
- A new
exp_datefield onM3UAccountProfilestores the account expiration date as a properDateTimeField. For Xtream Codes accounts the field is auto-synced fromcustom_properties.user_info.exp_dateon every save (supports both Unix timestamps and ISO date strings). For non-XC M3U accounts the date can be entered manually via the account or profile form. - The M3U accounts table now shows an Expiration column displaying the earliest expiration date across all profiles for that account (color-coded: red = expired, orange = expiring soon, green = OK). Hovering the cell shows a tooltip with per-profile expiration details including inactive-profile labels.
- A daily Celery Beat task (
check_xc_account_expirations) checks all active profiles with an expiration date and manages system notifications: a normal-priority warning is raised for profiles expiring within 7 days; a high-priority alert is raised once the profile has already expired. Warning and expired notifications use separate keys so dismissing the 7-day warning does not suppress the expiration alert. - Notifications are also updated immediately when a profile is saved: if the expiration date is cleared or pushed beyond the 7-day window, any existing warning/expired notifications are deleted; if the date falls within the window or is already past, the matching notification is updated in place.
- Non-XC accounts expose a
DateTimePickeron both the M3U account form and the profile form.
- A new
- Dependency updates:
Django5.2.11 → 6.0.3 (security patch + major version upgrade; see Security section)django-celery-beat≥2.8.1 → ≥2.9.0 (adds explicit Django 6.0 support)
- When selecting an EPG source for a channel, the EPG source dropdown now only lists enabled (active) EPGs, sorted alphabetically.
- Channels page default splitter ratio changed from 50/50 to 60/40 (channels/streams) so all channel action buttons are visible without scrolling on 1080p displays.
- Frontend component refactoring and cleanup — Thanks @nick4810
FloatingVideo,SeriesModal,VODModal,SystemEvents,M3URefreshNotification, andNotificationCentersignificantly reduced in size by separating business logic into dedicated utility modules underutils/components/(FloatingVideoUtils.js,SeriesModalUtils.js,VODModalUtils.js,NotificationCenterUtils.js).FloatingVideoresize handle elements extracted into a standaloneResizeHandlessub-component.YouTubeTrailerModalextracted into a standalone component (components/modals/YouTubeTrailerModal.jsx).NotificationCenterandSidebarupdated from Mantine dot-notation sub-components (Popover.Target,Popover.Dropdown,ScrollArea.Autosize,AppShell.Navbar) to Mantine v7 named imports (PopoverTarget,PopoverDropdown,ScrollAreaAutosize,AppShellNavbar).M3URefreshNotificationnow uses the centralizedshowNotification()utility (fromnotificationUtils.js) instead of callingnotifications.show()directly, bringing it in line with the rest of the app. State updates also converted to functional updater form (prev => ...) to eliminate potential stale-closure bugs.SystemEventsnow importsformatfromdateTimeUtilsfor consistent date/time formatting.- Removed a dead
onLogouthandler inSidebarthat calledlogout()andwindow.location.reload()but was never wired to any UI element.
- EPG output when no
daysparameter is specified now excludes already-ended programs instead of returning all historical data.
- Single-stream channel creation modal not opening correctly when clicking the channel-creation button on an individual stream row in the Streams table. — Thanks @JCBird1012
- DVR series rule creation failing with a 500 error when the stored
series_rulesdata contained corrupted (non-dict) entries. Added type guards on the getter, setter, and generic settings serializer to filter invalid entries on read and write. Hardened the EPG ignore list getters (prefixes,suffixes,custom) with the same pattern. Frontend settings parse and save now validateseries_ruleswithArray.isArray(), matching the existing EPG field pattern, preventing corrupted data from being round-tripped back to the database. (Fixes #1059) — Thanks @CodeBormen - TS proxy clients stuck indefinitely in keepalive mode when a stream fails and never recovers (Fixes #1102, #1103) — Thanks @cmcpherson274 & @CodeBormen
- Keepalive duration cap: Non-owner worker clients sending keepalive packets to hold a connection open during failover can now be held at most
MAX_KEEPALIVE_DURATIONseconds (default 300 s). If no real stream data has been received within that window, the client is disconnected with a warning log. The timer resets each time real data resumes, so independent stalls do not accumulate. last_activetracking:last_activeis now updated on every keepalive packet and on every real data chunk, so clients actively waiting during a failover are not incorrectly evicted as ghost clients by the heartbeat thread. The heartbeat thread now only refreshes the Redis TTL rather than updatinglast_active, ensuring the ghost-detection check reflects true client activity rather than heartbeat activity.- Buffer reset on stream transition: A new
reset_buffer_position()method onStreamBufferclears the in-memory write buffer and partial-packet accumulator when switching between FFmpeg processes. Without this, a partial 188-byte TS packet from the dying FFmpeg process was being prepended to the first bytes from the new FFmpeg process, producing a corrupted TS packet boundary that broke audio decoder sync on the client side. Redis-stored chunks already consumed by clients are unaffected. add_chunk()locking hardened: The lock scope inadd_chunk()was expanded to cover the entire partial-packet merge and write-buffer accumulation phase, preventing a race condition betweenadd_chunk()and the newreset_buffer_position()call.
- Keepalive duration cap: Non-owner worker clients sending keepalive packets to hold a connection open during failover can now be held at most
- uWSGI segfaults caused by mixing threading and gevent concurrency models. The dev and debug uWSGI configs had
threadsandenable-threads = trueset alongside gevent, which triggers segmentation faults particularly on ARM64/Python 3.13. Removed those options to match the already-correct production config. — Thanks @jcasimir Stream.last_seenandChannelGroupM3UAccount.last_seenmodel defaults now usedjango.utils.timezone.nowinstead ofdatetime.datetime.now, eliminating spuriousRuntimeWarning: DateTimeField received a naive datetimewarnings emitted during test database creation and on new record creation whenUSE_TZ=True.- EPG programme parsing crash when an XMLTV source contains programme titles exceeding 255 characters. Previously, a single oversized title would cause the entire
bulk_createbatch to fail with a database truncation error, silently dropping all programmes in that batch. Titles are now truncated to 255 characters before being saved. (Fixes #1039) - Container startup failure when
PUID/PGIDis set, caused by/data/dbownership conflicts between thepostgressystem user (UID 102) and the configured PUID/PGID. PostgreSQL now runs as the PUID/PGID user in AIO mode, eliminating allchown-to-UID-102 operations and unifying/dataownership. (Fixes #1078) — Thanks @CodeBormen- Existing installations where PUID/PGID differs from the current
/data/dbowner are migrated automatically on first startup; a sentinel file prevents redundant recursivechownon subsequent boots. - PUID/PGID auto-detected from existing data ownership when not explicitly set, avoiding cross-UID
chownfailures on restricted filesystems (NFSroot_squash, CIFS). - PUID/PGID validated as positive non-zero integers before any user/group operations.
- UID collisions with the
postgressystem user (e.g. PUID=102) are now handled gracefully. - Ensured proper variable quoting in the /docker/ directory to guard from inappropriate input
- Existing installations where PUID/PGID differs from the current
- Floating video player bug fixes
- Resize stuck after releasing mouse outside window: The
mouseupevent is not delivered when the pointer leaves the viewport, leaving themousemovelistener active indefinitely. Fixed by checkingevent.buttons === 0at the top ofhandleResizeMove; when no button is held the resize session is torn down immediately. - Drag stuck after releasing mouse outside window: Same root cause as the resize bug. Fixed by detecting
event.buttons === 0in theonDraghandler and dispatching a syntheticmouseupevent so react-draggable cleanly ends the drag session. - Player draggable off screen: The player could be dragged off any edge, making the header (and drag handle) unreachable. The player is now fully bounded: left and top edges are clamped to
x ≥ 0/y ≥ 0so the header is always reachable, and right/bottom edges are clamped to the viewport. Size and position are also re-clamped automatically when the browser window is resized, with proportional scale-down if the saved size exceeds the new viewport.
- Resize stuck after releasing mouse outside window: The
- Double error notification when saving user preferences:
API.updateMewas catching errors internally and displaying a notification before re-throwing, causing callers to display a second notification for the same failure. - Navigation preference saves from concurrent sessions could overwrite each other due to a double-merge race: the frontend was pre-merging
custom_propertiesbefore sending, then the backend merged again against the DB value, causing the second session's write to silently drop keys set by the first. The frontend now sends only the delta; the backend merges authoritatively against the stored value. - Stale nav item IDs (e.g. from a previous nav structure) are now scrubbed from
navOrderandhiddenNavon the next preference save, preventing unbounded growth of thecustom_propertiesJSON field. - Version update notification persisting after upgrading to the notified version (e.g. "v0.20.2 available" shown while already running v0.20.2). Root cause:
check_for_version_update.delay()was called fromAppConfig.ready(), which fires inside Celery prefork pool subprocesses before the broker connection is established, causing the dispatch to fail silently with no log output. Fixed by moving the startup dispatch to theworker_readysignal incelery.py(consistent with the existingrecover_recordings_on_startuppattern), and deleting the staleversion-{current_version}notification at the top of the production check path so it is cleared even when GitHub is unreachable. A WebSocket update is sent immediately on deletion so the frontend badge clears without waiting for the API response. - VOD orphan cleanup crashing with a
ForeignKeyViolation(IntegrityError) when a concurrent refresh task created a newM3UMovieRelationorM3USeriesRelationfor a movie/series between the orphan-detection query and theDELETESQL. Bothorphaned_movies.delete()andorphaned_series.delete()are now wrapped intry/except IntegrityError; affected records are skipped with a warning and will be cleaned up on the next scheduled run. - XC stream refresh crashing with a
null value in column "name"database error when a provider returns streams with a null or empty name. Affected streams are now assigned a generated fallback name in the format<account name> - <stream_id>so the refresh completes successfully and the stream remains accessible. A warning is logged for each affected stream. - 504 Gateway Timeout when saving M3U group settings on slower hardware (e.g. Synology NAS). Replaced per-row
update_or_create()loops withbulk_create(update_conflicts=True)wrapped intransaction.atomic()for bothChannelGroupM3UAccountandM3UVODCategoryRelation, reducing hundreds of individual DB round-trips to a single query per model. (Fixes #745) — Thanks @nickgerrer - Improved frontend table stability during M3U imports: Fixed incorrect default
stateinitialization ([]→{}) inCustomTableto match TanStack Table v8's expected state object shape. AddedautoResetPageIndex: falseandautoResetExpanded: falseto prevent TanStack Table from issuing internal state resets on data updates. MemoizedprocessedDatainM3UsTableto avoid redundant sort/filter recomputation on re-renders. - Thanks @marcinolek debian_install.shhardened for non-UTF8 environments (common in minimal LXC containers) - Thanks @marcinolek- Added
setup_localesstep that installs thelocalespackage, enablesen_US.UTF-8, regenerates locales, and exportsLANG/LC_ALLbefore any other work runs, preventing PostgreSQL from defaulting toSQL_ASCIIencoding. - PostgreSQL database creation now explicitly passes
-E UTF8tocreatedb. PATHin the Celery worker, Celery Beat, and Daphne systemd service files extended to include/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin, fixing failures where background tasks could not locateffmpegorffprobe.
- Added
is_adultfield parsing now guards against invalid values (e.g. the string"None") that providers may send instead of a valid integer, preventing aValueErrorcrash during M3U/XC stream refresh. A newparse_is_adult()helper wraps the cast in atry/except, returningFalsefor anything that cannot be interpreted as1. (Fixes #1061) — Thanks @JCBird1012- M3U EXTINF attribute parsing for values containing
=or==(e.g. base64-paddedtvg-logoURLs, catchup tokens with query strings). The previous regex used[^\s]+for the key pattern, allowing=signs inside a quoted value to be greedily absorbed into the next attribute's key name, causing that attribute and all subsequent ones on the line to be silently dropped. Changed to[^\s=]+so the key match always stops at the first=. (Fixes #1055) - Thanks @JCBird1012 - Celery worker memory leak during M3U/XC refresh causing 20–80 MB growth per cycle with no reclamation (Fixes #1012, #1053) - Thanks @CodeBormen
- Restructured
refresh_single_m3u_account()with atry/finallythat guaranteesdelof large data structures runs before Celery'sgc.collect(), and lock release on all exit paths (success, exception, early return) - Re-enabled batch data cleanup in
process_m3u_batch_direct()(was commented out) - Added
CELERY_WORKER_MAX_MEMORY_PER_CHILD = 512 MBas a safety net against pymalloc arena fragmentation
- Restructured
- EPG output was filtering programs using
start_time__gte=nowwhen thedaysparameter was specified, which caused currently-airing programs (started before the request time but not yet ended) to be omitted from the XML output. This produced a gap in clients' guides immediately after an EPG refresh, lasting until the next program started. Fixed by changing the filter toend_time__gte=nowso any program that has not yet finished is included. - TS proxy connection slot leaks and TOCTOU races in stream initialization (Fixes #947) - Thanks @CodeBormen
- TOCTOU race in slot reservation:
get_stream()previously used aGET→check→INCRsequence, allowing concurrent requests to both read the same count below the limit and both reserve a slot, silently exceedingmax_streams. Replaced with an atomicINCR-first pattern: increment unconditionally, check the result, roll back withDECRif over capacity. — Thanks @patchy8736 - Leak on URL generation failure:
generate_stream_url()calledget_stream()(whichINCRs the counter) but had no cleanup path if subsequent DB lookups or URL construction failed. The post-get_stream()block is now wrapped in atry/exceptthat callsrelease_stream()on any error. - Leak on retry-loop timeout: the retry loop in
stream_ts()called a bareget_stream()on the first failure to classify the error reason. If a slot was available, thisINCR'd the counter and set Redis keys that were never released when the loop timed out. Arelease_stream()call is now issued before returning 503. - Leak on
initialize_channel()failure: wheninitialize_channel()returnedFalse, the connection slot allocated by the precedingget_stream()was never released. Aconnection_allocatedflag now tracks whether this request performed theINCR(fresh initialization vs. joining an existing channel), andrelease_stream()is called guarded by that flag to prevent incorrect decrements when attaching to an already-running channel. - Safety net for unexpected exceptions: the outer
exceptinstream_ts()now checksconnection_allocatedand callsrelease_stream()as a last-resort cleanup for any unhandled exception that escapes before the channel is handed off to the stream lifecycle. release_stream()now returnsbooland adds a metadata-hash fallback: if the primarychannel_stream/stream_profileRedis keys have already been cleaned up by the proxy, it recoversstream_idandprofile_idfrom the channel's metadata hash and clears those fields atomically to prevent duplicateDECRs on repeated calls. — Thanks @patchy8736update_stream_profile()uses a Redis pipeline for the old-profile DECR + key update + new-profile INCR sequence, preventing counter drift if the process crashes between operations.stream_generator._cleanup()now falls back toStream.objects.get()when the channel UUID resolves to a preview flow rather than a normal channel, rather than silently skipping the slot release.- VOD
cleanup_persistent_connection()fallback DECR is now conditional: it only decrements the profile counter when the connection tracking key had already expired by TTL (i.e.,remove_connection()would have skipped the DECR), preventing double-decrements when the key is still present.
- TOCTOU race in slot reservation:
- Ghost clients and channels stuck in
INITIALIZINGstate in the TS proxy (Fixes #695, #669) — Thanks @CodeBormenINITIALIZINGadded to cleanup grace period monitoring: channels stuck inINITIALIZINGare now surfaced by the cleanup task and torn down, preventing indefinite hangs when stream startup fails.- Orphaned channel cleanup validates client SET entries: the cleanup task now cross-checks client SET members against actual metadata hashes; ghost SET entries are removed and the channel is torn down cleanly when no real clients remain.
- Stats page self-heals: ghost client SET entries are detected and removed when reading channel stats, preventing stale entries from inflating the active-client count.
remove_ghost_clients()extracted toClientManager: ghost-detection logic is now a single authoritative helper, callable with an optional pre-fetchedclient_idsset to eliminate a redundant RedisSMEMBERSround-trip when the caller already holds the set.- Ownership TTL fallback: the error-state writer now triggers via ownership check or state guard fallback, so a channel stuck in a pre-active state is correctly marked
ERROReven when the ownership TTL expired during retries. - Missing
SOURCE_BITRATE/FFMPEG_BITRATEmetadata constants added toChannelMetadataField, preventingAttributeErroron detailed channel stats reads.
- TS proxy client stream lag recovery now only bumps clients forward when their next required chunk has genuinely expired from Redis (TTL), rather than unconditionally jumping if they fell more than 50 chunks behind. Clients are repositioned to the oldest available chunk (minimum data loss) using an atomic server-side Lua binary search, falling back to near the buffer head if nothing is available.
- TS proxy streams dying after 30–200 seconds in multi-worker uWSGI/Celery deployments, caused by three interrelated bugs. (Fixes #992, #980) - Thanks @PFalko
- Double ProxyServer instantiation:
ProxyConfig.ready()calledTSProxyServer()directly whileTSProxyConfig.ready()also calledTSProxyServer.get_instance(), creating two instances per worker — each with its own cleanup thread. The orphaned thread could not extend ownership because it had no entries instream_managers. Fixed by usingTSProxyServer.get_instance()inProxyConfig.ready(). flushdb()on every Redis client init:RedisClient.get_client()calledclient.flushdb()whenever_clientwasNone. Celery autoscale (--autoscale=6,1) spawning new workers mid-stream triggered this path, nuking all Redis keys including active ownership keys, client records, and channel metadata. Removed theflushdb()call entirely.- No recovery from expired ownership:
get_channel_owner()calledredis.get()twice inside a lambda (TOCTOU race — key could expire between calls);extend_ownership()silently returnedFalseon expiry with no re-acquisition; and the non-owner cleanup path unconditionally killed streams even when the worker held thestream_manager. Fixed with a singleGETinget_channel_owner(), re-acquisition via atomicSET NX EXinextend_ownership(), and a re-acquisition attempt with client-aware cleanup deferral in the cleanup thread.
- Double ProxyServer instantiation:
get_instance()deadlock: ifProxyServer()raised an exception during singleton construction,_instancewas left permanently as the_INITIALIZINGsentinel, causing all subsequentget_instance()callers to spin in an infinitegevent.sleep()loop. Construction is now wrapped intry/except; on failure_instanceresets toNoneso the next call can retry.- Non-atomic ownership acquisition in
try_acquire_ownership(): replaced the separatesetnx()+expire()calls with a single atomicSET NX EX, eliminating the race window where a process crash between the two calls could leave an ownership key with no TTL (permanent ownership lock). - DVR bug fixes — Thanks @CodeBormen
- Duplicate recording execution:
run_recording.apply_async(countdown=...)exceeded Redis' defaultvisibility_timeout(3600 s) for recordings scheduled more than one hour out, causing Redis to redeliver the task to multiple workers simultaneously and producing corrupted output files. Replacedapply_asyncwithClockedSchedule+PeriodicTaskfor database-backed one-shot scheduling that survives restarts and upgrades without the redelivery race.run_recordingalso now exits immediately if the recording is already in progress, completed, or stopped.revoke_task()cleans up both thePeriodicTaskand its orphanedClockedScheduleon execution. (Fixes #940, #641) - Stream reconnection resilience: Recordings now survive transient network drops with automatic reconnection retrying up to 5 times and appending to the existing file. DB operations use exponential-backoff retry for transient database errors throughout the recording lifecycle.
- Crash recovery pipeline: On worker restart, recordings stuck in "recording" status have their segments concatenated and remuxed. Remux sanity checks reject MKV output that is less than 50% the size of a previous MKV (duplicate-task overwrite) or less than 10% of the source TS (corrupt first attempt); the source
.tsis preserved for manual recovery on all failure paths. (Fixes #619, #624) - Output file collision: Fixed collision when multiple tasks targeted the same filename.
- WebSocket deadlock:
send_websocket_update()was deadlocking the gevent event loop, causing one recording's WebSocket events to block all other simultaneous recordings. - DVR client isolation: Stop and Cancel operations now identify the target client by recording ID (via
User-Agent: Dispatcharr-DVR/recording-{id}), ensuring only the correct proxy client is torn down and never affecting other recordings on the same channel. - Accidental stream termination on delete:
destroy()now only calls_stop_dvr_clients()for in-progress recordings, preventing stream termination when deleting a completed recording. - Recording card logos: Logos were not displaying due to a channel summary API shape mismatch.
- Logo fetch negative cache: Added negative cache for failed remote logo fetches so dead CDNs no longer block Daphne workers on repeated requests.
- Artwork fuzzy-match sanitisation: Poster artwork fuzzy-matching against external APIs (TMDB, OMDb, etc.) was producing incorrect results for channels with names like "USA A&E SD*"; channel-name strings are now sanitised before querying external sources.
- Series modal "No upcoming episodes": Fixed due to a missing
_group_countmerge and an incorrect time filter. - Series rule cleanup: Deleting a series rule left orphaned recordings and stale Guide indicators; rule deletion now cleans up all associated recordings. Orphaned recordings with no parent rule are also cleaned up automatically. (Fixes #1041)
- Series rule timezone calculation: Recurring rules silently dropped scheduled recordings for users in UTC-negative timezones after 4 pm local time. (Fixes #1042)
- Recording modal TDZ crash: Modal crashed on load in production bundles due to a Temporal Dead Zone error — editing state was referenced before its declaration in the minified bundle.
- Description textarea focus loss: The description textarea lost focus immediately when opened because the inline editing component was remounting on every render.
- WebSocket-driven refresh: Replaced all manual
fetchRecordings()polling calls with debounced WebSocket-driven refresh so the recordings list stays up to date without redundant API requests. - comskip exit code handling: comskip treated exit code 1 ("no commercials found") as a fatal error, causing post-processing to fail on clean recordings. Exit code 1 is now recognised as a successful no-op.
- Differentiated WebSocket notification events:
recording_stopped,recording_cancelled(in-progress cancel), andrecording_deletedwith awas_in_progressflag now allow the frontend to display distinct "Recording stopped", "Recording cancelled", and "Recording deleted" toasts. - Duplicate series rule evaluation race: Creating a series rule fired
evaluate_series_rules.delay()in the API view while the frontend immediately called the synchronous evaluate endpoint, racing to create duplicate recordings for the same program. Removed the redundant async call from the API; the frontend's explicit evaluate call is now the sole evaluation path. - Recording card S/E badge overlap: Season/episode badges were overlapping and metadata was hidden on the recording card.
- Orphaned recording fallback in series modal: When a series rule no longer exists, the recurring rule modal now shows a "Delete Recording" button for the orphaned recording instead of failing silently.
- Duplicate recording execution:
- Modular mode deployment hardening — Thanks @CodeBormen
- Postgres version check with restricted DB users: The version check was connecting to the hardcoded
postgresdatabase, which fails when the configured user lacks access to it. Changed to use$POSTGRES_DBso the check works with least-privilege database users. (Fixes #1045) - DVR recording broken in modular mode: Internal TS stream URL candidates hardcoded port
9191, so recordings failed whenDISPATCHARR_PORTwas set to any other value. URL construction now readsDISPATCHARR_PORTfrom the environment via the newbuild_dvr_candidates()helper.DISPATCHARR_PORTis also now explicitly passed to the Celery container indocker-compose.yml. - Selective Redis flush in modular mode:
wait_for_redis.pynow performs a targeted flush in modular mode — clearing stale stream locks, proxy metadata, and server-state keys — while preserving Celery broker and result-backend keys. Previously either a fullflushdb()(which wiped Celery queues) or no flush at all was performed. - Redis wait stripping environment variables: The modular-mode Redis readiness check ran as a uWSGI
exec-prehook, which executes undersu -and strips Docker environment variables, makingDISPATCHARR_ENVandREDIS_HOSTunavailable. Moved to the container entrypoint so all env vars are present. - Stale environment variables after container restart:
/etc/profile.d/dispatcharr.shwas only written on the first container run; restarts with changed env vars (e.g. a rotatedPOSTGRES_PASSWORD) retained stale values. The file is now truncated and rewritten on every startup./etc/environmententries are likewise updated rather than skipped when a key already exists. All exported values are now quoted to prevent breakage from special characters. - Celery entrypoint startup timeouts: The JWT key wait and migration wait loops had no timeout, leaving the Celery worker hanging indefinitely if the web container was stuck. Each loop now times out (120 s for JWT, 300 s for migrations) and exits with a clear diagnostic message. The migration readiness check is also replaced from a fragile
showmigrations | greppattern tomigrate --check, which exits cleanly on both unapplied migrations and connection errors. - Service startup ordering:
depends_onentries fordbandredisindocker-compose.ymlupgraded from plain name-link ordering tocondition: service_healthy, ensuring containers wait for actual readiness signals before starting. host.docker.internalresolution on Linux: Addedextra_hosts: host.docker.internal:host-gatewayto the web service indocker-compose.ymlso Linux hosts resolvehost.docker.internalthe same way Docker Desktop does on macOS/Windows.
- Postgres version check with restricted DB users: The version check was connecting to the hardcoded
- Updated frontend npm dependencies to resolve 2 high-severity vulnerabilities:
- Updated
minimatchto ≥10.2.3, resolving high ReDoS via matchOne() combinatorial backtracking with multiple non-adjacent GLOBSTAR segments (GHSA-7r86-cg39-jmmj) - Updated
rollupto ≥4.58.1, resolving high Arbitrary File Write via Path Traversal (GHSA-mw96-cpmx-2vgc)
- Updated
- EPG filter regression in channel table (introduced in 0.20.0 channel store refactor): The EPG filter dropdown was showing all EPG sources regardless of whether they had any channels assigned, and the "No EPG" option was never displayed. Fixed by annotating EPGSource records with a
has_channelsflag (via a lightweightEXISTSsubquery) so only active EPG sources with at least one channel assigned appear as filter options. "No EPG" now appears only when at least one channel globally has no EPG assigned; this is determined by a secondEXISTSquery embedded directly in the paginated channel response (has_unassigned_epg_channels), avoiding any additional network requests. - Stale stream rows missing hover effect: Stale streams in the streams table had no hover color change, unlike channels with no streams assigned. Converted the inline
backgroundColorstyle to a CSS class (stale-stream-row) so the:hoverrule can apply correctly. Applied the same fix to the channel-streams sub-table, where the teal expanded-row background caused the semi-transparent red tint to visually mismatch; the sub-table now uses a pre-blended solid color viacolor-mix()to match the appearance of stale rows in the main streams table. - Channel table onboarding shown when filter returns zero results: The channel store refactor changed to loading only channel IDs instead of full channel objects, leaving
Object.keys(channels).lengthalways0and incorrectly triggering the onboarding state on any empty filter. Fixed by checkingchannelIds.lengthinstead. - TV Guide scrolls to position 0 when a filter yields no results: Applying any filter that temporarily empties the channel list (e.g. switching directly between two channel groups, or typing a search query that matches nothing) caused the guide to show a blank/empty view with no programs visible. The
VariableSizeListunmounts whenfilteredChannelsbecomes empty, destroying its DOM node and resettingscrollLeftto 0. On remount the scroll position was never restored becauseinitialScrollCompletewas stilltrue. Fixed by saving the user's current scroll position when the channel list empties mid-transition, then restoring it once new channels have loaded. On first load the guide still scrolls to the current time as before. debian_install.shregressions afteruvmigration on clean/minimal Debian installs: fixed pip-less venv (ensurepip), missinggunicornfor the systemd unit, and inconsistentDJANGO_SECRET_KEYavailability (now persisted to.envviaEnvironmentFile). Docker unaffected. - Thanks @marcinolek
- Login form disabled after token expiry: The login button was permanently rendered as disabled ("Logging you in...") on page load after a session expired, preventing users from logging back in. A regression in v0.20.0 caused
LoginFormto checkif (user)to detect an already-authenticated reload, but the Zustand auth store initializesuseras a truthy empty object{ username: '', email: '', user_level: '' }, so the loading state was set immediately on every mount. Reverted to pre-regression behavior. (Fixes #1029)
- Updated Django 5.2.9 → 5.2.11, resolving the following CVEs:
- CVE-2025-13473 (low): Username enumeration via timing difference in mod_wsgi authentication handler.
- CVE-2025-14550 (moderate): Potential denial-of-service via repeated headers on ASGI requests.
- CVE-2026-1207 (high): Potential SQL injection via raster lookups on PostGIS.
- CVE-2026-1285 (moderate): Potential denial-of-service in
django.utils.text.TruncatorHTML methods via inputs with large numbers of unmatched HTML end tags. - CVE-2026-1287 (high): Potential SQL injection in column aliases via control characters in
FilteredRelation. - CVE-2026-1312 (high): Potential SQL injection via
QuerySet.order_by()andFilteredRelationwhen using column aliases containing periods.
- Updated frontend npm dependencies to resolve 5 audit vulnerabilities (1 moderate, 4 high):
- Updated
ajv6.12.6 → 6.14.0, resolving a moderate ReDoS vulnerability when using the$dataoption (GHSA-2g4f-4pwh-qvx6) - Enforced
minimatch≥10.2.2 via npm overrides, resolving high ReDoS via repeated wildcards with non-matching literal patterns (GHSA-3ppc-4f35-3m26) affectingminimatch,@eslint/config-array,@eslint/eslintrc, andeslint
- Updated
- API key authentication: Added support for API key-based authentication as an alternative to JWT tokens. Users can generate and revoke their own personal API key from their profile page, enabling programmatic access for scripts, automations, and third-party integrations without exposing account credentials. Keys authenticate via the
Authorization: ApiKey <key>header or theX-API-Key: <key>header. Admin users can additionally generate and revoke keys on behalf of any user. - Lightweight channel summary API endpoint: Added a new
/api/channels/summary/endpoint that returns only the minimal channel data needed for TV Guide and DVR scheduling (id, name, logo), avoiding the overhead of serializing full channel objects for high-frequency UI operations. - Custom Dummy EPG subtitle template support: Added optional subtitle template field to custom dummy EPG configuration. Users can now define subtitle patterns using extracted regex groups and time/date placeholders (e.g.,
{starttime} - {endtime}). (Closes #942) - Event-driven webhooks and script execution (Integrations): Added new Integrations feature that enables event-driven execution of custom scripts and webhooks in response to system events. (Closes #203)
- Supported event types: channel lifecycle (start, stop, reconnect, error, failover), stream operations (switch), recording events (start, end), data refreshes (EPG, M3U), and client activity (connect, disconnect)
- Event data delivery: available as environment variables in scripts (prefixed with
DISPATCHARR_), POST payloads for webhooks, and plugin execution payloads - Plugin support: plugins can subscribe to events by specifying an
eventsarray in their action definitions - Connection testing: test endpoint with dummy payloads for validation before going live
- Custom HTTP headers: webhook connections support configurable key/value header pairs
- Per-event Jinja2 payload templates: each enabled event can have its own template rendered with the full event payload as context; rendered output is sent as JSON (with
Content-Type: application/jsonset automatically) if valid, or as a raw string body otherwise - Tabbed connection form: Settings, Event Triggers, and Payload Templates organized into separate tabs for clarity
- Cron scheduling support for M3U and EPG refreshes: Added interactive cron expression builder with preset buttons and custom field editors, plus info popover with common cron examples. Refactored backup scheduling to use shared ScheduleInput component for consistency across all scheduling interfaces. (Closes #165)
- Channel numbering modes for auto channel sync: Added three channel numbering modes when auto-syncing channels from M3U groups:
- Fixed Start Number (default): Start at a specified number and increment sequentially
- Use Provider Number: Use channel numbers from the M3U source (tvg-chno), with configurable fallback if provider number is missing
- Next Available: Auto-assign starting from 1, skipping all used channel numbers Each mode includes its own configuration options accessible via the "Channel Numbering Mode" dropdown in auto sync settings. (Closes #956, #433)
- Legacy NumPy for modular Docker: Added entrypoint detection and automatic installation for the Celery container (use
USE_LEGACY_NUMPY) to support older CPUs. - Thanks @patrickjmcd series_relationforeign key onM3UEpisodeRelation: episode relations now carry a direct FK to their parentM3USeriesRelation. This enables correct CASCADE deletion (removing a series relation automatically removes its episode relations), precise per-provider scoping during stale-stream cleanup.- Streamer accounts attempting to log into the web UI now receive a clear notification explaining they cannot access the UI but their stream URLs still work. Previously the login button would silently stop with no feedback.
- Dependency updates:
Django5.2.9 → 5.2.11 (security patch; see Security section)celery5.6.0 → 5.6.2psutil7.1.3 → 7.2.2torch2.9.1+cpu → 2.10.0+cpusentence-transformers5.2.0 → 5.2.3ajv6.12.6 → 6.14.0 (security patch; see Security section)minimatchenforced ≥10.2.2 via npm overrides (security patch; see Security section)react/react-dom19.2.3 → 19.2.4react-router-dom/react-router7.12.0 → 7.13.0react-hook-form7.70.0 → 7.71.2react-draggable4.4.6 → 4.5.0@tanstack/react-table8.21.2 → 8.21.3video.js8.23.4 → 8.23.7vite7.3.0 → 7.3.1zustand5.0.9 → 5.0.11allotment1.20.4 → 1.20.5prettier3.7.4 → 3.8.1@swc/wasm1.15.7 → 1.15.11@testing-library/react16.3.1 → 16.3.2@types/react19.2.7 → 19.2.14@vitejs/plugin-react-swc4.2.2 → 4.2.3
- Channel store optimization: Refactored frontend channel loading to only fetch channel IDs on initial login (matching the streams store pattern), instead of loading full channel objects upfront. Full channel data is fetched lazily as needed. This dramatically reduces login time and initial page load when large channel libraries are present.
- DVR scheduling: Channel selector now displays the channel number alongside the channel name when scheduling a recording.
- TV Guide performance improvements: Optimized the TV Guide with horizontal culling for off-screen program rows (only rendering visible programs), throttled now-line position updates, and improved scroll performance. Reduces unnecessary DOM work and improves responsiveness with large EPG datasets.
- Stream Profile form rework: Replaced the plain command text field with a dropdown listing built-in tools (FFmpeg, Streamlink, VLC, yt-dlp) plus a Custom option that reveals a free-text input. Each built-in now shows its default parameter string as a live example in the Parameters field description, updating as the command selection changes. Added descriptive help text to all fields to improve clarity.
- Custom Dummy EPG form UI improvements: Reorganized the form into collapsible accordion sections (Pattern Configuration, Output Templates, Upcoming/Ended Templates, Fallback Templates, EPG Settings) for better organization. Field descriptions now appear in info icon popovers instead of taking up vertical space, making the form more compact and easier to navigate while keeping help text accessible.
- XC API M3U stream URLs: M3U generation for Xtream Codes API endpoints now use proper XC-style stream URLs (
/live/username/password/channel_id) instead of UUID-based stream endpoints, ensuring full compatibility with XC clients. (Fixes #839) - XC API
get_seriesnow includestmdb_idandimdb_idfields, matchingget_vod_streams. Clients that use TMDB enrichment (e.g. Chillio) can now resolve clean series titles and poster images. - Thanks @firestaerter3 - Stats page "Now Playing" EPG lookup updated to use
channel_uuidsdirectly (the proxy stats already key active channels by UUID), removing the need for a UUID→integer ID conversion step introduced alongside the lazy channel-fetch refactor. Stream preview sessions (which use a content hash rather than a UUID as their channel ID) are now filtered out before any API call is made, preventing a backendValidationErroron both thecurrent-programsandby-uuidsendpoints when a stream preview is active on the Stats page.
- Fixed admin permission checks inconsistently using
is_superuser/is_staffinstead ofuser_level>=10, causing API-created admin accounts to intermittently see the setup page, lose access to backup endpoints, and miss admin-only notifications.manage.py createsuperusernow also correctly setsuser_level=10. (Fixes #954) - Thanks @CodeBormen - Channel table group filter sort order: The group dropdown in the channel table is now sorted alphabetically.
- DVR one-time recording scheduling: Fixed a bug where scheduling a one-time recording for a future program caused the recording to start immediately instead of at the scheduled time.
- XC API
addedfield type inconsistencies:get_live_streamsandget_vod_infonow return theaddedfield as a string (e.g.,"1708300800") instead of an integer, fixing compatibility with XC clients that have strict JSON serializers (such as Jellyfin's Xtream Library plugin). (Closes #978) - Stream Profile form User-Agent not populating when editing: The User-Agent field was not correctly loaded from the existing profile when opening the edit modal. (Fixes #650)
- VOD proxy connection counter leak on client disconnect: Fixed a connection leak in the VOD proxy where connection counters were not properly decremented when clients disconnected, causing the connection pool to lose track of available connections. The multi-worker connection manager now correctly handles client disconnection events across all proxy configurations. Includes three key fixes: (1) Replaced GET-check-INCR race condition with atomic INCR-first-then-check pattern in both connection managers to prevent concurrent requests exceeding max_streams; (2) Decrement profile counter directly in stream generator exit paths instead of deferring to daemon thread cleanup; (3) Decrement profile counter on create_connection() failure to release reserved slots. (Fixes #962, #971, #451, #533) - Thanks @CodeBormen
- XC profile refresh credential extraction with sub-paths: Fixed credential extraction in
get_transformed_credentials()to use negative indices anchored to the known tail structure instead of hardcoded indices that broke when server URLs contained sub-paths (e.g.,http://server.com/portal/a/). This ensures XC accounts with sub-paths in their server URLs work correctly for profile refreshes. (Fixes #945) - Thanks @CodeBormen - XC EPG URL construction for accounts with sub-paths or trailing slashes: Fixed EPG URL construction in M3U forms to normalize server URL to origin before appending
xmltv.phpendpoint, preventing double slashes and incorrect path placement when server URLs include sub-paths or trailing slashes. (Fixes #800) - Thanks @CodeBormen - Auto channel sync duplicate channel numbers across groups: Fixed issue where multiple auto-sync groups starting at the same number would create duplicate channel numbers. The used channel number tracking now persists across all groups in a single sync operation, ensuring each assigned channel number is globally unique.
- Modular mode PostgreSQL/Redis connection checks: Replaced raw Python socket checks with native tools (
pg_isreadyfor PostgreSQL andsocket.create_connectionfor Redis) in modular deployment mode to prevent indefinite hangs in Docker environments with non-standard networking or DNS configurations. Now properly supports IPv4 and IPv6 configurations. (Fixes #952) - Thanks @CodeBormen - VOD episode UUID regeneration on every refresh: a pre-emptive
Episode.objects.delete()inrefresh_series_episodesran beforebatch_process_episodes, defeating its update-in-place logic and forcing all episodes to be recreated with new UUIDs on every refresh. Clients (Jellyfin, Emby, Plex, etc.) with cached episode paths received 500 errors until a full library rescan. Removing the delete allows episodes to be updated in place with stable UUIDs. (Fixes #785, #985, #820) - Thanks @znake-oil - VOD stale episode stream cleanup scoped incorrectly per provider: when a provider removed a stream from a series,
batch_process_episodescould delete episode relations belonging to a different provider version of the same series (e.g. EN vs ES) that had deduped to the sameSeriesobject via TMDB/IMDB ID. Cleanup is now scoped to the specificM3USeriesRelationthat was queried.
- Add system notifications and update checks -Real-time notifications for system events and alerts -Per-user notification management and dismissal -Update check on startup and every 24 hours to notify users of available versions -Notification center UI component -Automatic cleanup of expired notifications
- Network Access "Reset to Defaults" button: Added a "Reset to Defaults" button to the Network Access settings form, matching the functionality in Proxy Settings. Users can now quickly restore recommended network access settings with one click.
- Streams table column visibility toggle: Added column menu to Streams table header allowing users to show/hide optional columns (TVG-ID, Stats) based on preference, with optional columns hidden by default for cleaner default view.
- Streams table TVG-ID column with search filter and sort: Added TVG-ID column to streams table with search filtering and sort capability for better stream organization. (Closes #866) - Thanks @CodeBormen
- Frontend now automatically refreshes streams and channels after a stream rehash completes, ensuring the UI is always up-to-date following backend merge operations.
- Frontend Unit Tests: Added comprehensive unit tests for React hooks and Zustand stores, including:
useLocalStoragehook tests with localStorage mocking and error handlinguseSmartLogoshook tests for logo loading and managementuseTablePreferenceshook tests for table settings persistenceuseAuthStoretests for authentication flow and token managementuseChannelsStoretests for channel data managementuseUserAgentsStoretests for user agent CRUD operationsuseUsersStoretests for user management functionalityuseVODLogosStoretests for VOD logo operationsuseVideoStoretests for video player state managementuseWarningsStoretests for warning suppression functionality- Code refactoring for improved readability and maintainability - Thanks @nick4810
- EPG auto-matching: Added advanced options to strip prefixes, suffixes, and custom text from channel names to assist matching; default matching behavior and settings remain unchanged (Closes #771) - Thanks @CodeBormen
- Redis authentication support for modular deployments: Added support for authentication when connecting to external Redis instances using either password-only authentication (Redis <6) or username + password authentication (Redis 6+ ACL). REDIS_PASSWORD and REDIS_USER environment variables with URL encoding for special characters. (Closes #937) - Thanks @CodeBormen
- Plugin logos: if a plugin ZIP includes
logo.png, it is surfaced in the Plugins UI and shown next to the plugin name. - Plugin manifests (
plugin.json) for safe metadata discovery, plus legacy warnings and folder-name fallbacks when a manifest is missing. - Plugin stop hooks: Dispatcharr now calls a plugin's optional
stop()method (orrun("stop")action) when disabling, deleting, or reloading plugins to allow graceful shutdown. - Plugin action buttons can define
button_label,button_variant, andbutton_color(e.g., Stop in red), falling back to “Run” for older plugins. - Plugin card metadata: plugins can specify
authorandhelp_urlinplugin.jsonto show author and docs link in the UI. - Plugin cards can now be expanded/collapsed by clicking the header or chevron to hide settings and actions.
- XtreamCodes Authentication Optimization: Reduced API calls during XC refresh by 50% by eliminating redundant authentication step. This should help reduce rate-limiting errors.
- App initialization efficiency: Refactored app initialization to prevent redundant execution across multiple worker processes. Created
dispatcharr.app_initializationutility module withshould_skip_initialization()function that prevents custom initialization tasks (backup scheduler sync, developer notifications sync) from running during management commands, in worker processes, or in development servers. This significantly reduces startup overhead in multi-worker deployments (e.g., uWSGI with 10 workers now syncs the scheduler once instead of 10 times). Applied to bothCoreConfigandBackupsConfigapps. - M3U/EPG Network Access Defaults: Updated default network access settings for M3U and EPG endpoints to only allow local/private networks by default (127.0.0.0/8, 10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16, ::1/128, fc00::/7, fe80::/10). This improves security by preventing public internet access to these endpoints unless explicitly configured. Other endpoints (Streams, XC API, UI) remain open by default.
- Modular deployments: Bumped modular Postgres image to 17 and added compatibility checks (PostgreSQL version and UTF-8 database encoding) when using external databases to prevent migration/encoding issues.
- Stream Identity Stability: Added
stream_id(provider stream identifier) andstream_chno(provider channel number) fields to Stream model. For XC accounts, the stream hash now uses the stablestream_idinstead of the URL when hashing, ensuring XC streams maintain their identity and channel associations even when account credentials or server URLs change. Supports both XCnumand M3Utvg-chno/channel-numberattributes. - Swagger/OpenAPI Migration: Migrated from
drf-yasg(OpenAPI 2.0) todrf-spectacular(OpenAPI 3.0) for API documentation. This provides:- Native Bearer token authentication support in Swagger UI - users can now enter just the JWT token and the "Bearer " prefix is automatically added
- Modern OpenAPI 3.0 specification compliance
- Better auto-generation of request/response schemas
- Improved documentation accuracy with serializer introspection
- Switched to uv for package management: Migrated from pip to uv (Astral's fast Python package installer) for improved dependency resolution speed and reliability. This includes updates to Docker build processes, installation scripts (debian_install.sh), and project configuration (pyproject.toml) to leverage uv's features like virtual environment management and lockfile generation. - Thanks @tobimichael96 for getting it started!
- Copy to Clipboard: Refactored
copyToClipboardutility function to include notification handling internally, eliminating duplicate notification code across the frontend. The function now accepts optional parameters for customizing success/failure messages while providing consistent behavior across all copy operations.
- XC EPG Logic: Fixed EPG filtering issues where short EPG requests had no time-based filtering (returning expired programs) and regular EPG requests used
start_time__gte(missing the currently playing program). Both now correctly useend_time__gtto show programs that haven't ended yet, with short EPG additionally limiting results. (Fixes #915) - Automatic backups not enabled by default on new installations: Added backups app to
INSTALLED_APPSand implemented automatic scheduler initialization inBackupsConfig.ready(). The backup scheduler now properly syncs the periodic task on startup, ensuring automatic daily backups are enabled and scheduled immediately on fresh database creation without requiring manual user intervention. - Fixed modular Docker Compose deployment and entrypoint/init scripts to properly support
DISPATCHARR_ENV=modular, use external PostgreSQL/Redis services, and handle port, version, and encoding validation (Closes #324, Fixes #61, #445, #731) - Thanks @CodeBormen - Stream rehash/merge logic now guarantees unique stream_hash and always preserves the stream with the best channel ordering and relationships. This prevents duplicate key errors and ensures the correct stream is retained when merging. (Fixes #892)
- Admin URL Conflict with XC Streams: Updated nginx configuration to only redirect exact
/adminand/admin/paths to login in production, preventing interference with stream URLs that use "admin" as a username (e.g.,/admin/password/stream_idnow properly routes to stream handling instead of being redirected). - EPG Channel ID XML Escaping: Fixed XML parsing errors in EPG output when channel IDs contain special characters (&, <, >, ") by properly escaping them in XML attributes. (Fixes #765) - Thanks @CodeBormen
- Fixed NumPy baseline detection in Docker entrypoint. Now properly detects when NumPy crashes on import due to CPU baseline incompatibility and installs legacy NumPy version. Previously, if NumPy failed to import, the script would skip legacy installation assuming it was already compatible.
- Backup Scheduler Test: Fixed test to correctly validate that automatic backups are enabled by default with a retention count of 3, matching the actual scheduler defaults. - Thanks @jcasimir
- Hardened plugin loading to avoid executing plugin code unless the plugin is enabled.
- Prevented plugin package names from shadowing standard library or installed modules by namespacing plugin imports with safe aliases.
- Added safety limits to plugin ZIP imports (file count and size caps) and sanitized plugin keys derived from uploads.
- Enforced strict boolean parsing for plugin enable/disable requests to avoid accidental enables from truthy strings.
- Applied plugin field defaults server-side when running actions so plugins receive expected settings even before a user saves.
- Plugin settings UI improvements: render
info/textfields, supportinput_type: password, show descriptions/placeholders, surface save failures, and keep settings in sync after refresh. - Disabled plugins now collapse settings/actions to match the closed state before first enable.
- Plugin card header controls (delete/version/toggle) now stay right-aligned even with long descriptions.
- Improved plugin logo resolution (case-insensitive paths + absolute URLs), fixing dev UI logo loading without a Vite proxy.
- Plugin reload now hits the backend, clears module caches across workers, and refreshes the UI so code changes apply without a full backend restart.
- Plugin loader now supports
plugin.pywithout__init__.py, including folders with non-identifier names, by loading modules directly from file paths. - Plugin action handling stabilized: avoids registry race conditions and only shows loading on the active action.
- Plugin enable/disable toggles now update immediately without requiring a full page refresh.
- M3U/EPG tasks downloading endlessly for large files: Fixed the root cause where the Redis task lock (300s TTL) expired during long downloads, allowing Celery Beat to start competing duplicate tasks that never completed. Added a
TaskLockRenewerdaemon thread that periodically extends the lock TTL while a task is actively working, applied to all long-running task paths (M3U refresh, M3U group refresh, EPG refresh, EPG program parsing). Also adds an HTTP timeout to M3U download requests, streams M3U downloads directly to a temp file on disk instead of accumulating the entire file in memory, and adds Celery task time limits as a safety net against runaway tasks. (Fixes #861) - Thanks @CodeBormen
- Series Rules API Swagger Documentation: Fixed drf_yasg validation error where TYPE_ARRAY schemas were missing required items parameter, causing module import failure
- Updated react-router from 7.11.0 to 7.12.0 to address two security vulnerabilities:
- High: Open Redirect XSS vulnerability in Action/Server Action Request Processing (GHSA-h5cw-625j-3rxh, GHSA-2w69-qvjg-hvjx)
- Moderate: SSR XSS vulnerability in ScrollRestoration component (GHSA-8v8x-cx79-35w7)
- Updated react-router-dom from 7.11.0 to 7.12.0 (dependency of react-router)
- Fixed moderate severity Prototype Pollution vulnerability in Lodash (
_.unsetand_.omitfunctions) See GHSA-xxjr-mmjv-4gpg for details.
- Series Rules API Swagger Documentation: Added comprehensive Swagger/OpenAPI documentation for all series-rules endpoints (
GET /series-rules/,POST /series-rules/,DELETE /series-rules/{tvg_id}/,POST /series-rules/evaluate/,POST /series-rules/bulk-remove/), including detailed descriptions, request/response schemas, and error handling information for improved API discoverability - Editable Channel Table Mode:
- Added a robust inline editing mode for the channels table, allowing users to quickly edit channel fields (name, number, group, EPG, logo) directly in the table without opening a modal.
- EPG and logo columns support searchable dropdowns with instant filtering and keyboard navigation for fast assignment.
- Drag-and-drop reordering of channels enabled when unlocked, with persistent order updates. (Closes #333)
- Group column uses a searchable dropdown for quick group assignment, matching the UX of EPG and logo selectors.
- All changes are saved via API with optimistic UI updates and error handling.
- Stats page enhancements: Added "Now Playing" program information for active streams with smart polling that only fetches EPG data when programs are about to change (not on every stats refresh). Features include:
- Currently playing program title displayed with live broadcast indicator (green Radio icon)
- Expandable program descriptions via chevron button
- Progress bar showing elapsed and remaining time for currently playing programs
- Efficient POST-based API endpoint (
/api/epg/current-programs/) supporting batch channel queries or fetching all channels - Smart scheduling that fetches new program data 5 seconds after current program ends
- Only polls when active channel list changes, not on stats refresh
- Channel preview button: Added preview functionality to active stream cards on stats page
- Unassociated streams filter: Added "Only Unassociated" filter option to streams table for quickly finding streams not assigned to any channels - Thanks @JeffreyBytes (Closes #667)
- Streams table: Added "Hide Stale" filter to quickly hide streams marked as stale.
- Client-side logo caching: Added
Cache-ControlandLast-Modifiedheaders to logo responses, enabling browsers to cache logos locally for 4 hours (local files) and respecting upstream cache headers (remote logos). This reduces network traffic and nginx load while providing faster page loads through browser-level caching that complements the existing nginx server-side cache - Thanks @DawtCom - DVR recording remux fallback strategy: Implemented two-stage TS→MP4→MKV fallback when direct TS→MKV conversion fails due to timestamp issues. On remux failure, system now attempts TS→MP4 conversion (MP4 container handles broken timestamps better) followed by MP4→MKV conversion, automatically recovering from provider timestamp corruption. Failed conversions now properly clean up partial files and preserve source TS for manual recovery.
- Mature content filtering support:
- Added
is_adultboolean field to both Stream and Channel models with database indexing for efficient filtering and sorting - Automatically populated during M3U/XC refresh operations by extracting
is_adultvalue from provider data - Type-safe conversion supporting both integer (0/1) and string ("0"/"1") formats from different providers
- UI controls in channel edit form (Switch with tooltip) and bulk edit form (Select dropdown) for easy management
- XtreamCodes API support with proper integer formatting (0/1) in live stream responses
- Automatic propagation from streams to channels during both single and bulk channel creation operations
- Included in serializers for full API support
- User-level content filtering: Non-admin users can opt to hide mature content channels across all interfaces (web UI, M3U playlists, EPG data, XtreamCodes API) via "Hide Mature Content" toggle in user settings (stored in custom_properties, admin users always see all content)
- Added
- Table header pin toggle: Pin/unpin table headers to keep them visible while scrolling. Toggle available in channel table menu and UI Settings page. Setting persists across sessions and applies to all tables. (Closes #663)
- Cascading filters for streams table: Improved filter usability with hierarchical M3U and Group dropdowns. M3U acts as the parent filter showing only active/enabled accounts, while Group options dynamically update to display only groups available in the selected M3U(s). Only enabled M3U's are displayed. (Closes #647)
- Streams table UI: Added descriptive tooltips to top-toolbar buttons (Add to Channel, Create Channels, Filters, Create Stream, Delete) and to row action icons (Add to Channel, Create New Channel). Tooltips now use a 500ms open delay for consistent behavior with existing table header tooltips.
- Data loading and initialization refactor: Major performance improvement reducing initial page load time by eliminating duplicate API requests caused by race conditions between authentication flow and route rendering:
- Fixed authentication race condition where
isAuthenticatedwas set before data loading completed, causing routes to render and tables to mount prematurely - Added
isInitializedflag to delay route rendering until after all initialization data is loaded viainitData() - Consolidated version and environment settings fetching into centralized settings store with caching to prevent redundant calls
- Implemented stale fetch prevention in ChannelsTable and StreamsTable using fetch version tracking to ignore outdated responses
- Fixed filter handling in tables to use
debouncedFiltersconsistently, preventing unnecessary refetches - Added initialization guards using refs to prevent double-execution of auth and superuser checks during React StrictMode's intentional double-rendering in development
- Removed duplicate version/environment fetch calls from Sidebar, LoginForm, and SuperuserForm by using centralized store
- Fixed authentication race condition where
- Table preferences (header pin and table size) now managed together with centralized state management and localStorage persistence.
- Streams table button labels: Renamed "Remove" to "Delete" and "Add Stream to Channel" to "Add to Channel" for clarity and consistency with other UI terminology.
- Frontend tests GitHub workflow now uses Node.js 24 (matching Dockerfile) and runs on both
mainanddevbranch pushes and pull requests for comprehensive CI coverage. - Table preferences architecture refactored: Migrated
table-sizepreference from individualuseLocalStoragecalls to centralizeduseTablePreferenceshook. All table components now read preferences from the table instance (table.tableSize, `.g maintainability and providing consistent API across all tables. - Optimized unassociated streams filter performance: Replaced inefficient reverse foreign key NULL check (
channels__isnull=True) with Count annotation approach, reducing query time from 4-5 seconds to under 500ms for large datasets (75k+ streams)
- Channels table pagination error handling: Fixed "Invalid page" error notifications that appeared when filters reduced the result set while on a page beyond the new total. The API layer now automatically detects invalid page errors, resets pagination to page 1, and retries the request transparently. (Fixes #864)
- Fixed long IP addresses overlapping adjacent columns in stream connection card by adding truncation with tooltips displaying the full address. (Fixes #712)
- Fixed nginx startup failure due to group name mismatch in non-container deployments - Thanks @s0len (Fixes #877)
- Updated streamlink from 8.1.0 to 8.1.2 to fix YouTube live stream playback issues and improve Pluto TV ad detection (Fixes #869)
- Fixed date/time formatting across all tables to respect user's UI preferences (time format and date format) set in Settings page:
- Stream connection card "Connected" column
- VOD connection card "Connection Start Time" column
- M3U table "Updated" column
- EPG table "Updated" column
- Users table "Last Login" and "Date Joined" columns
- All components now use centralized
format()helper from dateTimeUtils for consistency
- Removed unused imports from table components for cleaner code
- Fixed build-dev.sh script stability: Resolved Dockerfile and build context paths to be relative to script location for reliable execution from any working directory, added proper --platform argument handling with array-safe quoting, and corrected push behavior to honor -p flag with accurate messaging. Improved formatting and quoting throughout to prevent word-splitting issues - Thanks @JeffreyBytes
- Fixed TypeError on streams table load after container restart: Added robust data validation and type coercion to handle malformed filter options during container startup. The streams table MultiSelect components now safely convert group names to strings and filter out null/undefined values, preventing "right-hand side of 'in' should be an object, got number" errors when the backend hasn't fully initialized. API error handling returns safe defaults.
- Fixed XtreamCodes API crash when channels have NULL channel_group: The
player_api.phpendpoint (xc_get_live_streams) now gracefully handles channels without an assigned channel_group by dynamically looking up and assigning them to "Default Group" instead of crashing with AttributeError. Additionally, the Channel serializer now auto-assigns new channels to "Default Group" whenchannel_group_idis omitted during creation, preventing future NULL channel_group issues. - Fixed streams table column header overflow: Implemented fixed-height column headers (30px max-height) with pill-style filter display showing first selection plus count (e.g., "Sport +3"). Prevents header expansion when multiple filters are selected, maintaining compact table layout. (Fixes #613)
- Fixed VOD logo cleanup button count: The "Cleanup Unused" button now displays the total count of all unused logos across all pages instead of only counting unused logos on the current page.
- Fixed VOD refresh failures when logos are deleted: Changed logo comparisons to use
logo_id(raw FK integer) instead oflogo(related object) to avoid Django's lazy loading, which triggers a database fetch that fails if the referenced logo no longer exists. Also improved orphaned logo detection to properly clear stale references when logo URLs exist but logos are missing from the database. - Fixed channel profile filtering to properly restrict content based on assigned channel profiles for all non-admin users (user_level < 10) instead of only streamers (user_level == 0). This corrects the XtreamCodes API endpoints (
get_live_categoriesandget_live_streams) along with M3U and EPG generation, ensuring standard users (level 1) are properly restricted by their assigned channel profiles. Previously, "Standard" users with channel profiles assigned would see all channels instead of only those in their assigned profiles. - Fixed NumPy baseline detection in Docker entrypoint. Now calls
numpy.show_config()directly with case-insensitive grep instead of incorrectly wrapping the output. - Fixed SettingsUtils frontend tests for new grouped settings architecture. Updated test suite to properly verify grouped JSON settings (stream_settings, dvr_settings, etc.) instead of individual CharField settings, including tests for type conversions, array-to-CSV transformations, and special handling of proxy_settings and network_access.
- Added tooltip on filter pills showing all selected items in a vertical list (up to 10 items, with "+N more" indicator)
- Loading feedback for all confirmation dialogs: Extended visual loading indicators across all confirmation dialogs throughout the application. Delete, cleanup, and bulk operation dialogs now show an animated dots loader and disabled state during async operations, providing consistent user feedback for backups (restore/delete), channels, EPGs, logos, VOD logos, M3U accounts, streams, users, groups, filters, profiles, batch operations, and network access changes.
- Channel profile edit and duplicate functionality: Users can now rename existing channel profiles and create duplicates with automatic channel membership cloning. Each profile action (edit, duplicate, delete) in the profile dropdown for quick access.
- ProfileModal component extracted for improved code organization and maintainability of channel profile management operations.
- Frontend unit tests for pages and utilities: Added comprehensive unit test coverage for frontend components within pages/ and JS files within utils/, along with a GitHub Actions workflow (
frontend-tests.yml) to automatically run tests on commits and pull requests - Thanks @nick4810 - Channel Profile membership control for manual channel creation and bulk operations: Extended the existing
channel_profile_idsparameter fromPOST /api/channels/from-stream/to also supportPOST /api/channels/(manual creation) and bulk creation tasks with the same flexible semantics:- Omitted parameter (default): Channels are added to ALL profiles (preserves backward compatibility)
- Empty array
[]: Channels are added to NO profiles - Sentinel value
[0]: Channels are added to ALL profiles (explicit) - Specific IDs
[1, 2, ...]: Channels are added only to the specified profiles This allows API consumers to control profile membership across all channel creation methods without requiring all channels to be added to every profile by default.
- Channel profile selection in creation modal: Users can now choose which profiles to add channels to when creating channels from streams (both single and bulk operations). Options include adding to all profiles, no profiles, or specific profiles with mutual exclusivity between special options ("All Profiles", "None") and specific profile selections. Profile selection defaults to the current table filter for intuitive workflow.
- Group retention policy for M3U accounts: Groups now follow the same stale retention logic as streams, using the account's
stale_stream_dayssetting. Groups that temporarily disappear from an M3U source are retained for the configured retention period instead of being immediately deleted, preserving user settings and preventing data loss when providers temporarily remove/re-add groups. (Closes #809) - Visual stale indicators for streams and groups: Added
is_stalefield to Stream and bothis_staleandlast_seenfields to ChannelGroupM3UAccount models to track items in their retention grace period. Stale groups display with orange buttons and a warning tooltip, while stale streams show with a red background color matching the visual treatment of empty channels.
- Settings architecture refactored to use grouped JSON storage: Migrated from individual CharField settings to grouped JSONField settings for improved performance, maintainability, and type safety. Settings are now organized into logical groups (stream_settings, dvr_settings, backup_settings, system_settings, proxy_settings, network_access) with automatic migration handling. Backend provides helper methods (
get_stream_settings(),get_default_user_agent_id(), etc.) for easy access. Frontend simplified by removing complex key mapping logic and standardizing on underscore-based field names throughout. - Docker setup enhanced for legacy CPU support: Added
USE_LEGACY_NUMPYenvironment variable to enable custom-built NumPy with no CPU baseline, allowing Dispatcharr to run on older CPUs (circa 2009) that lack support for newer baseline CPU features. When set totrue, the entrypoint script will install the legacy NumPy build instead of the standard distribution. (Fixes #805) - VOD upstream read timeout reduced from 30 seconds to 10 seconds to minimize lock hold time when clients disconnect during connection phase
- Form management refactored across application: Migrated Channel, Stream, M3U Profile, Stream Profile, Logo, and User Agent forms from Formik to React Hook Form (RHF) with Yup validation for improved form handling, better validation feedback, and enhanced code maintainability
- Stats and VOD pages refactored for clearer separation of concerns: extracted Stream/VOD connection cards (StreamConnectionCard, VodConnectionCard, VODCard, SeriesCard), moved page logic into dedicated utils, and lazy-loaded heavy components with ErrorBoundary fallbacks to improve readability and maintainability - Thanks @nick4810
- Channel creation modal refactored: Extracted and unified channel numbering dialogs from StreamsTable into a dedicated CreateChannelModal component that handles both single and bulk channel creation with cleaner, more maintainable implementation and integrated profile selection controls.
- Fixed bulk channel profile membership update endpoint silently ignoring channels without existing membership records. The endpoint now creates missing memberships automatically (matching single-channel endpoint behavior), validates that all channel IDs exist before processing, and provides detailed response feedback including counts of updated vs. created memberships. Added comprehensive Swagger documentation with request/response schemas.
- Fixed bulk channel edit endpoint crashing with
ValueError: Field names must be given to bulk_update()when the first channel in the update list had no actual field changes. The endpoint now collects all unique field names from all channels being updated instead of only looking at the first channel, properly handling cases where different channels update different fields or when some channels have no changes - Thanks @mdellavo (Fixes #804) - Fixed PostgreSQL backup restore not completely cleaning database before restoration. The restore process now drops and recreates the entire
publicschema before runningpg_restore, ensuring a truly clean restore that removes all tables, functions, and other objects not present in the backup file. This prevents leftover database objects from persisting when restoring backups from older branches or versions. Added--no-ownerflag topg_restoreto avoid role permission errors when the backup was created by a different PostgreSQL user. - Fixed TV Guide loading overlay not disappearing after navigating from DVR page. The
fetchRecordings()function in the channels store was settingisLoading: trueon start but never resetting it tofalseon successful completion, causing the Guide page's loading overlay to remain visible indefinitely when accessed after the DVR page. - Fixed stream profile parameters not properly handling quoted arguments. Switched from basic
.split()toshlex.split()for parsing command-line parameters, allowing proper handling of multi-word arguments in quotes (e.g., OAuth tokens in HTTP headers like"--twitch-api-header=Authorization=OAuth token123"). This ensures external streaming tools like Streamlink and FFmpeg receive correctly formatted arguments when using stream profiles with complex parameters - Thanks @justinforlenza (Fixes #833) - Fixed bulk and manual channel creation not refreshing channel profile memberships in the UI for all connected clients. WebSocket
channels_createdevent now callsfetchChannelProfiles()to ensure profile membership updates are reflected in real-time for all users without requiring a page refresh. - Fixed Channel Profile filter incorrectly applying profile membership filtering even when "Show Disabled" was enabled, preventing all channels from being displayed. Profile filter now only applies when hiding disabled channels. (Fixes #825)
- Fixed manual channel creation not adding channels to channel profiles. Manually created channels are now added to the selected profile if one is active, or to all profiles if "All" is selected, matching the behavior of channels created from streams.
- Fixed VOD streams disappearing from stats page during playback by adding
socket-timeout = 600to production uWSGI config. The missing directive caused uWSGI to use its default 4-second timeout, triggering premature cleanup when clients buffered content. Now matches the existinghttp-timeout = 600value and prevents timeout errors during normal client buffering - Thanks @patchy8736 - Fixed Channels table EPG column showing "Not Assigned" on initial load for users with large EPG datasets. Added
tvgsLoadedflag to EPG store to track when EPG data has finished loading, ensuring the table waits for EPG data before displaying. EPG cells now show animated skeleton placeholders while loading instead of incorrectly showing "Not Assigned". (Fixes #810) - Fixed VOD profile connection count not being decremented when stream connection fails (timeout, 404, etc.), preventing profiles from reaching capacity limits and rejecting valid stream requests
- Fixed React warning in Channel form by removing invalid
removeTrailingZerosprop from NumberInput component - Release workflow Docker tagging: Fixed issue where
latestand version tags (e.g.,0.16.0) were creating separate manifests instead of pointing to the same image digest, which caused oldlatesttags to become orphaned/untagged after new releases. Now creates a single multi-arch manifest with both tags, maintaining proper tag relationships and download statistics visibility on GitHub. - Fixed onboarding message appearing in the Channels Table when filtered results are empty. The onboarding message now only displays when there are no channels created at all, not when channels exist but are filtered out by current filters.
- Fixed
M3UMovieRelation.get_stream_url()andM3UEpisodeRelation.get_stream_url()to use XC client's_normalize_url()method instead of simplerstrip('/'). This properly handles malformed M3U account URLs (e.g., containing/player_api.phpor query parameters) before constructing VOD stream endpoints, matching behavior of live channel URL building. (Closes #722) - Fixed bulk_create and bulk_update errors during VOD content refresh by pre-checking object existence with optimized bulk queries (3 queries total instead of N per batch) before creating new objects. This ensures all movie/series objects have primary keys before relation operations, preventing "prohibited to prevent data loss due to unsaved related object" errors. Additionally fixed duplicate key constraint violations by treating TMDB/IMDB ID values of
0or'0'as invalid (some providers use this to indicate "no ID"), converting them to NULL to prevent multiple items from incorrectly sharing the same ID. (Fixes #813)
- Advanced filtering for Channels table: Filter menu now allows toggling disabled channels visibility (when a profile is selected) and filtering to show only empty channels without streams (Closes #182)
- Network Access warning modal now displays the client's IP address for better transparency when network restrictions are being enforced - Thanks @damien-alt-sudo (Closes #778)
- VLC streaming support - Thanks @sethwv
- Added
cvlcas an alternative streaming backend alongside FFmpeg and Streamlink - Log parser refactoring: Introduced
LogParserFactoryand stream-specific parsers (FFmpegLogParser,VLCLogParser,StreamlinkLogParser) to enable codec and resolution detection from multiple streaming tools - VLC log parsing for stream information: Detects video/audio codecs from TS demux output, supports both stream-copy and transcode modes with resolution/FPS extraction from transcode output
- Locked, read-only VLC stream profile configured for headless operation with intelligent audio/video codec detection
- VLC and required plugins installed in Docker environment with headless configuration
- Added
- ErrorBoundary component for handling frontend errors gracefully with generic error message - Thanks @nick4810
- Fixed event viewer arrow direction (previously inverted) — UI behavior corrected. - Thanks @drnikcuk (Closes #772)
- Region code options now intentionally include both
GB(ISO 3166-1 standard) andUK(commonly used by EPG/XMLTV providers) to accommodate real-world EPG data variations. Many providers useUKin channel identifiers (e.g.,BBCOne.uk) despiteGBbeing the official ISO country code. Users should select the region code that matches their specific EPG provider's convention for optimal region-based EPG matching bonuses - Thanks @bigpandaaaa - Channel number inputs in stream-to-channel creation modals no longer have a maximum value restriction, allowing users to enter any valid channel number supported by the database
- Stream log parsing refactored to use factory pattern: Simplified
ChannelService.parse_and_store_stream_info()to route parsing through specialized log parsers instead of inline program-specific logic (~150 lines of code removed) - Stream profile names in fixtures updated to use proper capitalization (ffmpeg → FFmpeg, streamlink → Streamlink)
- Frontend component refactoring for improved code organization and maintainability - Thanks @nick4810
- Extracted large nested components into separate files (RecordingCard, RecordingDetailsModal, RecurringRuleModal, RecordingSynopsis, GuideRow, HourTimeline, PluginCard, ProgramRecordingModal, SeriesRecordingModal, Field)
- Moved business logic from components into dedicated utility files (dateTimeUtils, RecordingCardUtils, RecordingDetailsModalUtils, RecurringRuleModalUtils, DVRUtils, guideUtils, PluginsUtils, PluginCardUtils, notificationUtils)
- Lazy loaded heavy components (SuperuserForm, RecordingDetailsModal, ProgramRecordingModal, SeriesRecordingModal, PluginCard) with loading fallbacks
- Removed unused Dashboard and Home pages
- Guide page refactoring: Extracted GuideRow and HourTimeline components, moved grid calculations and utility functions to guideUtils.js, added loading states for initial data fetching, improved performance through better memoization
- Plugins page refactoring: Extracted PluginCard and Field components, added Zustand store for plugin state management, improved plugin action confirmation handling, better separation of concerns between UI and business logic
- Logo loading optimization: Logos now load only after both Channels and Streams tables complete loading to prevent blocking initial page render, with rendering gated by table readiness to ensure data loads before visual elements
- M3U stream URLs now use
build_absolute_uri_with_port()for consistency with EPG and logo URLs, ensuring uniform port handling across all M3U file URLs - Settings and Logos page refactoring for improved readability and separation of concerns - Thanks @nick4810
- Extracted individual settings forms (DVR, Network Access, Proxy, Stream, System, UI) into separate components with dedicated utility files
- Moved larger nested components into their own files
- Moved business logic into corresponding utils/ files
- Extracted larger in-line component logic into its own function
- Each panel in Settings now uses its own form state with the parent component handling active state management
- Auto Channel Sync Force EPG Source feature not properly forcing "No EPG" assignment - When selecting "Force EPG Source" > "No EPG (Disabled)", channels were still being auto-matched to EPG data instead of forcing dummy/no EPG. Now correctly sets
force_dummy_epgflag to prevent unwanted EPG assignment. (Fixes #788) - VOD episode processing now properly handles season and episode numbers from APIs that return string values instead of integers, with comprehensive error logging to track data quality issues - Thanks @patchy8736 (Fixes #770)
- VOD episode-to-stream relations are now validated to ensure episodes have been saved to the database before creating relations, preventing integrity errors when bulk_create operations encounter conflicts - Thanks @patchy8736
- VOD category filtering now correctly handles category names containing pipe "|" characters (e.g., "PL | BAJKI", "EN | MOVIES") by using
rsplit()to split from the right instead of the left, ensuring the category type is correctly extracted as the last segment - Thanks @Vitekant - M3U and EPG URLs now correctly preserve non-standard HTTPS ports (e.g.,
:8443) when accessed behind reverse proxies that forward the port in headers —get_host_and_port()now properly checksX-Forwarded-Portheader before falling back to other detection methods (Fixes #704) - M3U and EPG manager page no longer crashes when a playlist references a deleted channel group (Fixes screen blank on navigation)
- Stream validation now returns original URL instead of redirected URL to prevent issues with temporary redirect URLs that expire before clients can connect
- XtreamCodes EPG limit parameter now properly converted to integer to prevent type errors when accessing EPG listings (Fixes #781)
- Docker container file permissions: Django management commands (
migrate,collectstatic) now run as the non-root user to prevent root-owned__pycache__and static files from causing permission issues - Thanks @sethwv - Stream validation now continues with GET request if HEAD request fails due to connection issues - Thanks @kvnnap (Fixes #782)
- XtreamCodes M3U files now correctly set
x-tvg-urlandurl-tvgheaders to reference XC EPG URL (xmltv.php) instead of standard EPG endpoint when downloaded via XC API (Fixes #629)
- XtreamCodes EPG
has_archivefield now returns integer0instead of string"0"for proper JSON type consistency - nginx now gracefully handles hosts without IPv6 support by automatically disabling IPv6 binding at startup (Fixes #744)
- VOD client stop button in Stats page: Users can now disconnect individual VOD clients from the Stats view, similar to the existing channel client disconnect functionality.
- Automated configuration backup/restore system with scheduled backups, retention policies, and async task processing - Thanks @stlalpha (Closes #153)
- Stream group as available hash option: Users can now select 'Group' as a hash key option in Settings → Stream Settings → M3U Hash Key, allowing streams to be differentiated by their group membership in addition to name, URL, TVG-ID, and M3U ID
- Initial super user creation page now matches the login page design with logo, welcome message, divider, and version display for a more consistent and polished first-time setup experience
- Removed unreachable code path in m3u output - Thanks @DawtCom
- GitHub Actions workflows now use
docker/metadata-actionfor cleaner and more maintainable OCI-compliant image label generation across all build pipelines (ci.yml, base-image.yml, release.yml). Labels are applied to both platform-specific images and multi-arch manifests with proper annotation formatting. - Thanks [@mrdynamo]https://github.com/mrdynamo) (Closes #724) - Update docker/dev-build.sh to support private registries, multiple architectures and pushing. Now you can do things like
dev-build.sh -p -r my.private.registry -a linux/arm64,linux/amd64- Thanks @jdblack - Updated dependencies: Django (5.2.4 → 5.2.9) includes CVE security patch, psycopg2-binary (2.9.10 → 2.9.11), celery (5.5.3 → 5.6.0), djangorestframework (3.16.0 → 3.16.1), requests (2.32.4 → 2.32.5), psutil (7.0.0 → 7.1.3), gevent (25.5.1 → 25.9.1), rapidfuzz (3.13.0 → 3.14.3), torch (2.7.1 → 2.9.1), sentence-transformers (5.1.0 → 5.2.0), lxml (6.0.0 → 6.0.2) (Closes #662)
- Frontend dependencies updated: Vite (6.2.0 → 7.1.7), ESLint (9.21.0 → 9.27.0), and related packages; added npm
overridesto enforce js-yaml@^4.1.1 for transitive security fix. All 6 reported vulnerabilities resolved withnpm audit fix. - Floating video player now supports resizing via a drag handles, with minimum size enforcement and viewport/page boundary constraints to keep it visible.
- Redis connection settings now fully configurable via environment variables (
REDIS_HOST,REDIS_PORT,REDIS_DB,REDIS_URL), replacing hardcodedlocalhost:6379values throughout the codebase. This enables use of external Redis services in production deployments. (Closes #762) - Celery broker and result backend URLs now respect
REDIS_HOST/REDIS_PORT/REDIS_DBsettings as defaults, withCELERY_BROKER_URLandCELERY_RESULT_BACKENDenvironment variables available for override.
- Docker init script now validates DISPATCHARR_PORT is an integer before using it, preventing sed errors when Kubernetes sets it to a service URL like
tcp://10.98.37.10:80. Falls back to default port 9191 when invalid (Fixes #737) - M3U Profile form now properly resets local state for search and replace patterns after saving, preventing validation errors when adding multiple profiles in a row
- DVR series rule deletion now properly handles TVG IDs that contain slashes by encoding them in the URL path (Fixes #697)
- VOD episode processing now correctly handles duplicate episodes (same episode in multiple languages/qualities) by reusing Episode records across multiple M3UEpisodeRelation entries instead of attempting to create duplicates (Fixes #556)
- XtreamCodes series streaming endpoint now correctly handles episodes with multiple streams (different languages/qualities) by selecting the best available stream based on account priority (Fixes #569)
- XtreamCodes series info API now returns unique episodes instead of duplicate entries when multiple streams exist for the same episode (different languages/qualities)
- nginx now gracefully handles hosts without IPv6 support by automatically disabling IPv6 binding at startup (Fixes #744)
- XtreamCodes EPG API now returns correct date/time format for start/end fields and proper string types for timestamps and channel_id
- XtreamCodes EPG API now handles None values for title and description fields to prevent AttributeError
- XtreamCodes EPG
idfield now provides unique identifiers per program listing instead of always returning "0" for better client EPG handling - XtreamCodes EPG
epg_idfield now correctly returns the EPGData record ID (representing the EPG source/channel mapping) instead of a dummy value
- Sort buttons for 'Group' and 'M3U' columns in Streams table for improved stream organization and filtering - Thanks @bobey6
- EPG source priority field for controlling which EPG source is preferred when multiple sources have matching entries for a channel (higher numbers = higher priority) (Closes #603)
- EPG program parsing optimized for sources with many channels but only a fraction mapped. Now parses XML file once per source instead of once per channel, dramatically reducing I/O and CPU overhead. For sources with 10,000 channels and 100 mapped, this results in ~99x fewer file opens and ~100x fewer full file scans. Orphaned programs for unmapped channels are also cleaned up during refresh to prevent database bloat. Database updates are now atomic to prevent clients from seeing empty/partial EPG data during refresh.
- EPG table now displays detailed status messages including refresh progress, success messages, and last message for idle sources (matching M3U table behavior) (Closes #214)
- IPv6 access now allowed by default with all IPv6 CIDRs accepted - Thanks @adrianmace
- nginx.conf updated to bind to both IPv4 and IPv6 ports - Thanks @jordandalley
- EPG matching now respects source priority and only uses active (enabled) EPG sources (Closes #672)
- EPG form API Key field now only visible when Schedules Direct source type is selected
- EPG table "Updated" column now updates in real-time via WebSocket using the actual backend timestamp instead of requiring a page refresh
- Bulk channel editor confirmation dialog now displays the correct stream profile name that will be applied to the selected channels.
- uWSGI not found and 502 bad gateway on first startup
- JWT token generated so is unique for each deployment
CHANGELOG.mdfile following Keep a Changelog format to document all notable changes and project history- System event logging and viewer: Comprehensive logging system that tracks internal application events (M3U refreshes, EPG updates, stream switches, errors) with a dedicated UI viewer for filtering and reviewing historical events. Improves monitoring, troubleshooting, and understanding system behavior
- M3U/EPG endpoint caching: Implements intelligent caching for frequently requested M3U playlists and EPG data to reduce database load and improve response times for clients.
- Search icon to name headers for the channels and streams tables (#686)
- Comprehensive logging for user authentication events and network access restrictions
- Validation for EPG objects and payloads in updateEPG functions to prevent errors from invalid data
- Referrerpolicy to YouTube iframes in series and VOD modals for better compatibility
- XC player API now returns server_info for unknown actions to align with provider behavior
- XC player API refactored to streamline action handling and ensure consistent responses
- Date parsing logic in generate_custom_dummy_programs improved to handle empty or invalid inputs
- DVR cards now reflect date and time formats chosen by user - Thanks @Biologisten
- "Uncategorized" categories and relations now automatically created for VOD accounts to improve content management (#627)
- Improved minimum horizontal size in the stats page for better usability on smaller displays
- M3U and EPG generation now handles missing channel profiles with appropriate error logging
- Episode URLs in series modal now use UUID instead of ID, fixing broken links (#684, #694)
- Stream preview now respects selected M3U profile instead of always using default profile (#690)
- Channel groups filter in M3UGroupFilter component now filters out non-existent groups (prevents blank webui when editing M3U after a group was removed)
- Stream order now preserved in PATCH/PUT responses from ChannelSerializer, ensuring consistent ordering across all API operations - Thanks @FiveBoroughs (#643)
- XC client compatibility: float channel numbers now converted to integers
- M3U account and profile modals now scrollable on mobile devices for improved usability
- RTSP stream support with automatic protocol detection when a proxy profile requires it. The proxy now forces FFmpeg for RTSP sources and properly handles RTSP URLs - Thanks @ragchuck (#184)
- UDP stream support, including correct handling when a proxy profile specifies a UDP source. The proxy now skips HTTP-specific headers (like
user_agent) for non-HTTP protocols and performs manual redirect handling to improve reliability (#617) - Separate VOD logos system with a new
VODLogomodel, database migration, dedicated API/viewset, and server-paginated UI. This separates movie/series logos from channel logos, making cleanup safer and enabling independent bulk operations
- Background profile refresh now uses a rate-limiting/backoff strategy to avoid provider bans
- Bulk channel editing now validates all requested changes up front and applies updates in a single database transaction
- ProxyServer shutdown & ghost-client handling improved to avoid initializing channels for transient clients and prevent duplicate reinitialization during rapid reconnects
- URL / Stream validation expanded to support credentials on non-FQDN hosts, skips HTTP-only checks for RTSP/RTP/UDP streams, and improved host/port normalization
- TV guide scrolling & timeline synchronization improved with mouse-wheel scrolling, synchronized timeline position with guide navigation, and improved mobile momentum scrolling (#252)
- EPG Source dropdown now sorts alphabetically - Thanks @0x53c65c0a8bd30fff
- M3U POST handling restored and improved for clients (e.g., Smarters) that request playlists using HTTP POST - Thanks @maluueu
- Login form revamped with branding, cleaner layout, loading state, "Remember Me" option, and focused sign-in flow
- Series & VOD now have copy-link buttons in modals for easier URL sharing
get_host_and_portnow prioritizes verified port sources and handles reverse-proxy edge cases more accurately (#618)
- EXTINF parsing overhauled to correctly extract attributes such as
tvg-id,tvg-name, andgroup-title, even when values include quotes or commas (#637) - Websocket payload size reduced during EPG processing to avoid UI freezes, blank screens, or memory spikes in the browser (#327)
- Logo management UI fixes including confirmation dialogs, header checkbox reset, delete button reliability, and full client refetch after cleanup
- Custom Dummy EPG improvements:
- Support for using an existing Custom Dummy EPG as a template for creating new EPGs
- Custom fallback templates for unmatched patterns
{endtime}as an available output placeholder and renamed{time}→{starttime}(#590)- Support for date placeholders that respect both source and output timezones (#597)
- Ability to bulk assign Custom Dummy EPGs to multiple channels
- "Include New Tag" option to mark programs as new in Dummy EPG output
- Support for month strings in date parsing
- Ability to set custom posters and channel logos via regex patterns for Custom Dummy EPGs
- Improved DST handling by calculating offsets based on the actual program date, not today's date
- Stream model maximum URL length increased from 2000 to 4096 characters (#585)
- Groups now sorted during
xc_get_live_categoriesbased on the order they first appear (by lowest channel number) - Client TTL settings updated and periodic refresh implemented during active streaming to maintain accurate connection tracking
ProgramData.sub_titlefield changed fromCharFieldtoTextFieldto allow subtitles longer than 255 characters (#579)- Startup improved by verifying
/datadirectory ownership and automatically fixing permissions if needed. Pre-creates/data/modelsduring initialization (#614) - Port detection enhanced to check
request.META.get("SERVER_PORT")before falling back to defaults, ensuring correct port when generating M3U, EPG, and logo URLs - Thanks @lasharor
- Custom Dummy EPG frontend DST calculation now uses program date instead of current date
- Channel titles no longer truncated early after an apostrophe - Thanks @0x53c65c0a8bd30fff
- uWSGI not receiving environmental variables
- LXC unable to access daemons launched by uWSGI (#575, #576, #577)
- Custom Dummy EPG system:
- Regex pattern matching and name source selection
- Support for custom upcoming and ended programs
- Timezone-aware with source and local timezone selection
- Option to include categories and date/live tags in Dummy EPG output
- (#293)
- Auto-Enable & Category Improvements:
- Auto-enable settings for new groups and categories in M3U and VOD components (#208)
- IPv6 CIDR validation in Settings - Thanks @jordandalley (#236)
- Custom logo support for channel groups in Auto Sync Channels (#555)
- Tooltips added to the Stream Table
- Celery and uWSGI now have configurable
nicelevels (defaults:uWSGI=0,Celery=5) to prioritize streaming when needed. (#571) - Directory creation and ownership management refactored in init scripts to avoid unnecessary recursive
chownoperations and improve boot speed - HTTP streamer switched to threaded model with piped output for improved robustness
- Chunk timeout configuration improved and StreamManager timeout handling enhanced
- Proxy timeout values reduced to avoid unnecessary waiting
- Resource cleanup improved to prevent "Too many open files" errors
- Proxy settings caching implemented and database connections properly closed after use
- EPG program fetching optimized with chunked retrieval and explicit ordering to reduce memory usage during output
- EPG output now sorted by channel number for consistent presentation
- Stream Table buttons reordered for better usability
- Database connection handling improved throughout the codebase to reduce overall connection count
- Crash when resizing columns in the Channel Table (#516)
- Errors when saving stream settings (#535)
- Preview and edit bugs for custom streams where profile and group selections did not display correctly
channel_idandchannel.uuidnow converted to strings before processing to fix manual switching when the uWSGI worker was not the stream owner (#269)- Stream locking and connection search issues when switching channels; increased search timeout to reduce premature failures (#503)
- Stream Table buttons no longer shift into multiple rows when selecting many streams
- Custom stream previews
- Custom Stream settings not loading properly (#186)
- Orphaned categories now automatically removed for VOD and Series during M3U refresh (#540)
- "Assign TVG-ID from EPG" functionality with frontend actions for single-channel and batch operations
- Confirmation dialogs in
ChannelBatchFormfor setting names, logos, TVG-IDs, and clearing EPG assignments - "Clear EPG" button to
ChannelBatchFormfor easy reset of assignments - Batch editing of channel logos - Thanks @EmeraldPi
- Ability to set logo name from URL - Thanks @EmeraldPi
- Proper timestamp tracking for channel creation and updates;
XC Get Live Streamsnow uses this information - Time Zone Settings added to the application (#482, #347)
- Comskip settings support including comskip.ini upload and custom directory selection (#418)
- Manual recording scheduling for channels without EPG data (#162)
- Default M3U account type is now set to XC for new accounts
- Performance optimization: Only fetch playlists and channel profiles after a successful M3U refresh (rather than every status update)
- Playlist retrieval now includes current connection counts and improved session handling during VOD session start
- Improved stream selection logic when all profiles have reached max connections (retries faster)
- Large EPGs now fully parse all channels
- Duplicate channel outputs for streamer profiles set to "All"
- Streamer profiles with "All" assigned now receive all eligible channels
- PostgreSQL btree index errors from logo URL validation during channel creation (#519)
- M3U processing lock not releasing when no streams found during XC refresh, which also skipped VOD scanning (#449)
- Float conversion errors by normalizing decimal format during VOD scanning (#526)
- Direct URL ordering in M3U output to use correct stream sequence (#528)
- Adding multiple M3U accounts without refreshing modified only the first entry (#397)
- UI state bug where new playlist creation was not notified to frontend ("Fetching Groups" stuck)
- Minor FFmpeg task and stream termination bugs in DVR module
- Input escaping issue where single quotes were interpreted as code delimiters (#406)
- Logo management UI improvements where Channel editor now uses the Logo Manager modal, allowing users to add logos by URL directly from the edit form - Thanks @EmeraldPi
- FFmpeg base container rebuilt with improved native build support - Thanks @EmeraldPi
- GitHub Actions workflow updated to use native runners instead of QEMU emulation for more reliable multi-architecture builds
- EPG parsing stability when large EPG files would not fully parse all channels. Parser now uses
iterparsewithrecover=Truefor both channel and program-level parsing, ensuring complete and resilient XML processing even when Cloudflare injects additional root elements
m3u_idparameter togenerate_hash_keyand updated related calls- Support for
x-tvg-urlandurl-tvggeneration with preserved query parameters (#345) - Exact Gracenote ID matching for EPG channel mapping (#291)
- Recovery handling for XMLTV parser errors
nice -n 5added to Celery commands for better process priority management
- Default M3U hash key changed to URL only for new installs
- M3U profile retrieval now includes current connection counts and improved session handling during VOD session start
- Improved stream selection logic when all profiles have reached max connections (retries faster)
- XMLTV parsing refactored to use
iterparsefor<tv>element - Release workflow refactored to run on native architecture
- Docker build system improvements:
- Split install/build steps
- Switch from Yarn → NPM
- Updated to Node.js 24 (frontend build)
- Improved ARM build reliability
- Pushes to DockerHub with combined manifest
- Removed redundant tags and improved build organization
- Cloudflare-hosted EPG feeds breaking parsing (#497)
- Bulk channel creation now preserves the order channels were selected in (no longer reversed)
- M3U hash settings not saving properly
- VOD selecting the wrong M3U profile at session start (#461)
- Redundant
hremoved from 12-hour time format in settings page
- Virtualized rendering for TV Guide for smoother performance when displaying large guides - Thanks @stlalpha (#438)
- Enhanced channel/program mapping to reuse EPG data across multiple channels that share the same TVG-ID
URLfield length in EPGSource model increased from 200 → 1000 characters to support long URLs with tokens- Improved URL transformation logic with more advanced regex during profile refreshes
- During EPG scanning, the first display name for a channel is now used instead of the last
whiteSpacestyle changed fromnowrap→prein StreamsTable for better text formatting
- EPG channel parsing failure when channel
URLexceeded 500 characters by adding validation during scanning (#452) - Frontend incorrectly saving case-sensitive setting as a JSON string for stream filters
- Channel Creation Improvements:
- EPG Auto-Matching (Rewritten & Enhanced):
- Completely refactored for improved accuracy and efficiency
- Can now be applied to selected channels or triggered directly from the channel edit form
- Uses stricter matching logic with support from sentence transformers
- Added progress notifications during the matching process
- Implemented memory cleanup for ML models after matching operations
- Removed deprecated matching scripts
- Logo & EPG Management:
- Ability in channel edit form and bulk channel editor to set logos and names from assigned EPG (#157)
- Improved logo update flow: frontend refreshes on changes, store updates after bulk changes, progress shown via notifications
- Table Enhancements:
- All tables now support adjustable column resizing (#295)
- Channels and Streams tables persist column widths and center divider position to local storage
- Improved sizing and layout for user-agents, stream profiles, logos, M3U, and EPG tables
- Simplified VOD and series access: removed user-level restrictions on M3U accounts
- Skip disabled M3U accounts when choosing streams during playback (#402)
- Enhanced
UserViewSetqueryset to prefetch related channel profiles for better performance - Auto-focus added to EPG filter input
- Category API retrieval now sorts by name
- Increased default column size for EPG fields and removed max size on group/EPG columns
- Standardized EPG column header to display
(EPG ID - TVG-ID)
- Bug during VOD cleanup where all VODs not from the current M3U scan could be deleted
- Logos not being set correctly in some cases
- Bug where not setting a channel number caused an error when creating a channel (#422)
- Bug where clicking "Add Channel" with a channel selected opened the edit form instead
- Bug where a newly created channel could reuse streams from another channel due to form not clearing properly
- VOD page not displaying correct order while changing pages
ReferenceError: setIsInitialized is not definedwhen logging into web UIcannot access local variable 'total_chunks' where it is not associated with a valueduring VOD refresh
- Broken migrations affecting the plugins system
- DVR and plugin paths to ensure proper functionality (#381)
- Video on Demand (VOD) System:
- Complete VOD infrastructure with support for movies and TV series
- Advanced VOD metadata including IMDB/TMDB integration, trailers, cast information
- Smart VOD categorization with filtering by type (movies vs series)
- Multi-provider VOD support with priority-based selection
- VOD streaming proxy with connection tracking and statistics
- Season/episode organization for TV series with expandable episode details
- VOD statistics and monitoring integrated with existing stats dashboard
- Optimized VOD parsing and category filtering
- Dedicated VOD page with movies and series tabs
- Rich VOD modals with backdrop images, trailers, and metadata
- Episode management with season-based organization
- Play button integration with external player support
- VOD statistics cards similar to channel cards
- Plugin System:
- Extensible Plugin Framework - Developers can build custom functionality without modifying Dispatcharr core
- Plugin Discovery & Management - Automatic detection of installed plugins, with enable/disable controls in the UI
- Backend API Support - New APIs for listing, loading, and managing plugins programmatically
- Plugin Registry - Structured models for plugin metadata (name, version, author, description)
- UI Enhancements - Dedicated Plugins page in the admin panel for centralized plugin management
- Documentation & Scaffolding - Initial documentation and scaffolding to accelerate plugin development
- DVR System:
- Refreshed DVR page for managing scheduled and completed recordings
- Global pre/post padding controls surfaced in Settings
- Playback support for completed recordings directly in the UI
- DVR table view includes title, channel, time, and padding adjustments for clear scheduling
- Improved population of DVR listings, fixing intermittent blank screen issues
- Comskip integration for automated commercial detection and skipping in recordings
- User-configurable comskip toggle in Settings
- Enhanced Channel Management:
- EPG column added to channels table for better organization
- EPG filtering by channel assignment and source name
- Channel batch renaming for efficient bulk channel name updates
- Auto channel sync improvements with custom stream profile override
- Channel logo management overhaul with background loading
- Date and time format customization in settings - Thanks @Biologisten
- Auto-refresh intervals for statistics with better UI controls
- M3U profile notes field for better organization
- XC account information retrieval and display with account refresh functionality and notifications
- JSONB field conversion for custom properties (replacing text fields) for better performance
- Database encoding converted from ASCII to UTF8 for better character support
- Batch processing for M3U updates and channel operations
- Query optimization with prefetch_related to eliminate N+1 queries
- Reduced API calls by fetching all data at once instead of per-category
- Buffering speed setting now affects UI indicators
- Swagger endpoint accessible with or without trailing slash
- EPG source names displayed before channel names in edit forms
- Logo loading improvements with background processing
- Channel card enhancements with better status indicators
- Group column width optimization
- Better content-type detection for streams
- Improved headers with content-range and total length
- Enhanced user-agent handling for M3U accounts
- HEAD request support with connection keep-alive
- Progress tracking improvements for clients with new sessions
- Server URL length increased to 1000 characters for token support
- Prettier formatting applied to all frontend code
- String quote standardization and code formatting improvements
- Logo loading issues in channel edit forms resolved
- M3U download error handling and user feedback improved
- Unique constraint violations fixed during stream rehashing
- Channel stats fetching moved from Celery beat task to configurable API calls
- Speed badge colors now use configurable buffering speed setting
- Channel cards properly close when streams stop
- Active streams labeling updated from "Active Channels"
- WebSocket updates for client connect/disconnect events
- Null value handling before database saves
- Empty string scrubbing for cleaner data
- Group relationship cleanup for removed M3U groups
- Logo cleanup for unused files with proper batch processing
- Recordings start 5 mins after show starts (#102)
- #350: Allow DVR recordings to be played via the UI
- #349: DVR screen doesn't populate consistently
- #340: Global find and replace
- #311: Stat's "Current Speed" does not reflect "Buffering Speed" setting
- #304: Name ignored when uploading logo
- #300: Updating Logo throws error
- #286: 2 Value/Column EPG in Channel Edit
- #280: Add general text field in M3U/XS profiles
- #190: Show which stream is being used and allow it to be altered in channel properties
- #155: Additional column with EPG assignment information / Allow filtering by EPG assignment
- #138: Bulk Channel Edit Functions
- Channel & Stream Enhancements:
- Preview streams under a channel, with stream logo and name displayed in the channel card
- Advanced stats for channel streams
- Stream qualities displayed in the channel table
- Stream stats now saved to the database
- URL badges can now be clicked to copy stream links to the clipboard
- M3U Filtering for Streams:
- Streams for an M3U account can now be filtered using flexible parameters
- Apply filters based on stream name, group title, or stream URL (via regex)
- Filters support both inclusion and exclusion logic for precise control
- Multiple filters can be layered with a priority order for complex rules
- Ability to reverse the sort order for auto channel sync
- Custom validator for URL fields now allows non-FQDN hostnames (#63)
- Membership creation added in
UpdateChannelMembershipAPIViewif not found (#275)
- Bumped Postgres to version 17
- Updated dependencies in
requirements.txtfor compatibility and improvements - Improved chunked extraction to prevent memory issues - Thanks @pantherale0
- XML escaping for channel ID in
generate_dummy_epgfunction - Bug where creating a channel from a stream not displayed in the table used an invalid stream name
- Debian install script - Thanks @deku-m
- Natural sorting for channel names during auto channel sync
- Ability to sort auto sync order by provider order (default), channel name, TVG ID, or last updated time
- Auto-created channels can now be assigned to specific channel profiles (#255)
- Channel profiles are now fetched automatically after a successful M3U refresh
- Uses only whole numbers when assigning the next available channel number
- Logo upload behavior changed to wait for the Create button before saving
- Uses the channel name as the display name in EPG output for improved readability
- Ensures channels are only added to a selected profile if one is explicitly chosen
- Logo Manager prevents redundant messages from the file scanner by properly tracking uploaded logos in Redis
- Fixed an issue preventing logo uploads via URL
- Adds internal support for assigning multiple profiles via API
- Logo Manager:
- Complete logo management system with filtering, search, and usage tracking
- Upload logos directly through the UI
- Automatically scan
/data/logosfor existing files (#69) - View which channels use each logo
- Bulk delete unused logos with cleanup
- Enhanced display with hover effects and improved sizing
- Improved logo fetching with timeouts and user-agent headers to prevent hanging
- Group Manager:
- Comprehensive group management interface (#128)
- Search and filter groups with ease
- Bulk operations for cleanup
- Filter channels by group membership
- Automatically clean up unused groups
- Auto Channel Sync:
- Automatic channel synchronization from M3U sources (#147)
- Configure auto-sync settings per M3U account group
- Set starting channel numbers by group
- Override group names during sync
- Apply regex match and replace for channel names
- Filter channels by regex match on stream name
- Track auto-created vs manually added channels
- Smart updates preserve UUIDs and existing links
- Stream rehashing with WebSocket notifications
- Better error handling for blocked rehash attempts
- Lock acquisition to prevent conflicts
- Real-time progress tracking
- Persist table page sizes in local storage (streams & channels)
- Smoother pagination and improved UX
- Fixed z-index issues during table refreshes
- Improved XC client with connection pooling
- Better error handling for API and JSON decode failures
- Smarter handling of empty content and blocking responses
- Improved EPG XML generation with richer metadata
- Better support for keywords, languages, ratings, and credits
- Better form layouts and responsive buttons
- Enhanced confirmation dialogs and feedback
- Channel table now correctly restores page size from local storage
- Resolved WebSocket message formatting issues
- Fixed logo uploads and edits
- Corrected ESLint issues across the codebase
- Fixed HTML validation errors in menus
- Optimized logo fetching with proper timeouts and headers (#101, #217)
- Streaming & Connection Stability:
- Provider timeout issues - Slow but responsive providers no longer cause channel lockups
- Added chunk and process timeouts - Prevents hanging during stream processing and transcoding
- Improved connection handling - Enhanced process management and socket closure detection for safer streaming
- Enhanced health monitoring - Health monitor now properly notifies main thread without attempting reconnections
- User Interface & Experience:
- Touch screen compatibility - Web player can now be properly closed on touch devices
- Improved user management - Added support for first/last names, login tracking, and standardized table formatting
- Improved logging - Enhanced log messages with channel IDs for better debugging
- Code cleanup - Removed unused imports, variables, and dead links
- Dynamic parameter options for M3U and EPG URLs (#207)
- Support for 'num' property in channel number extraction (fixes channel creation from XC streams not having channel numbers)
- EPG generation now uses streaming responses to prevent client timeouts during large EPG file generation (#179)
- Improved reliability when downloading EPG data from external sources
- Better program positioning - Programs that start before the current view now have proper text positioning (#223)
- Better mobile support - Improved sizing and layout for mobile devices across multiple tables
- Responsive stats cards - Better calculation for card layout and improved filling on different screen sizes (#218)
- Enhanced table rendering - M3U and EPG tables now render better on small screens
- Optimized spacing - Removed unnecessary padding and blank space throughout the interface
- Better settings layout - Improved minimum widths and mobile support for settings pages
- Always show 2 decimal places for FFmpeg speed values
- TV Guide now properly filters channels based on selected channel group
- Resolved loading issues - Fixed channels and groups not loading correctly in the TV Guide
- Stream profile fixes - Resolved issue with setting stream profile to 'use default'
- Single channel editing - When only one channel is selected, the correct channel editor now opens
- Bulk edit improvements - Added "no change" options for bulk editing operations
- Bulk channel editor now properly saves changes (#222)
- Link form improvements - Better sizing and rendering of link forms with proper layering
- Confirmation dialogs added with warning suppression for user deletion, channel profile deletion, and M3U profile deletion
- User Management & Access Control:
- Complete user management system with user levels and channel access controls
- Network access control with CIDR validation and IP-based restrictions
- Logout functionality and improved loading states for authenticated users
- Xtream Codes Output:
- Xtream Codes support enables easy output to IPTV clients (#195)
- Stream Management & Monitoring:
- FFmpeg statistics integration - Real-time display of video/audio codec info, resolution, speed, and stream type
- Automatic stream switching when buffering is detected
- Enhanced stream profile management with better connection tracking
- Improved stream state detection, including buffering as an active state
- Channel Management:
- Bulk channel editing for channel group, stream profile, and user access level
- Enhanced M3U & EPG Features:
- Dynamic
tvg-idsource selection for M3U and EPG (tvg_id,gracenote, orchannel_number) - Direct URL support in M3U output via
direct=trueparameter - Flexible EPG output with a configurable day limit via
days=#parameter - Support for LIVE tags and
dd_progridnumbering in EPG processing
- Dynamic
- Proxy settings configuration with UI integration and improved validation
- Stream retention controls - Set stale stream days to
0to disable retention completely (#123) - Tuner flexibility - Minimum of 1 tuner now allowed for HDHomeRun output
- Fallback IP geolocation provider (#127) - Thanks @maluueu
- POST method now allowed for M3U output, enabling support for Smarters IPTV - Thanks @maluueu
- Improved channel cards with better status indicators and tooltips
- Clearer error messaging for unsupported codecs in the web player
- Network access warnings to prevent accidental lockouts
- Case-insensitive M3U parsing for improved compatibility
- Better EPG processing with improved channel matching
- Replaced Mantine React Table with custom implementations
- Improved tooltips and parameter wrapping for cleaner interfaces
- Better badge colors and status indicators
- Stronger form validation and user feedback
- Streamlined settings management using JSON configs
- Default value population for clean installs
- Environment-specific configuration support for multiple deployment scenarios
- FFmpeg process cleanup - Ensures FFmpeg fully exits before marking connection closed
- Resolved stream profile update issues in statistics display
- Fixed M3U profile ID behavior when switching streams
- Corrected stream switching logic - Redis is only updated on successful switches
- Fixed connection counting - Excludes the current profile from available connection counts
- Fixed custom stream channel creation when no group is assigned (#122)
- Resolved EPG auto-matching deadlock when many channels match simultaneously - Thanks @xham3
- Direct Logo Support: Added ability to bypass logo caching by adding
?cachedlogos=falseto the end of M3U and EPG URLs (#109)
- Dynamic Resource Management: Auto-scales Celery workers based on demand, reducing overall memory and CPU usage while still allowing high-demand tasks to complete quickly (#111)
- Enhanced Logging:
- Improved logging for M3U processing
- Better error output from XML parser for easier troubleshooting
- XMLTV Parsing: Added
remove_blank_text=Trueto lxml parser to prevent crashes with poorly formatted XMLTV files (#115) - Stats Display: Refactored channel info retrieval for safer decoding and improved error logging, fixing intermittent issues with statistics not displaying properly
- Support for ZIP-compressed EPG files
- Automatic extraction of compressed files after downloading
- Intelligent file type detection for EPG sources:
- Reads the first bits of files to determine file type
- If a compressed file is detected, it peeks inside to find XML files
- Random descriptions for dummy channels in the TV guide
- Support for decimal channel numbers (converted from integer to float) - Thanks @MooseyOnTheLoosey
- Show channels without EPG data in TV Guide
- Profile name added to HDHR-friendly name and device ID (allows adding multiple HDHR profiles to Plex)
- About 30% faster EPG processing
- Significantly improved memory usage for large EPG files
- Improved timezone handling
- Cleaned up cached files when deleting EPG sources
- Performance improvements when processing extremely large M3U files
- Improved batch processing with better cleanup
- Enhanced WebSocket update handling for large operations
- Redis configured for better performance (no longer saves to disk)
- Improved memory management for Celery tasks
- Separated beat schedules with a file scanning interval set to 20 seconds
- Improved authentication error handling with user redirection to the login page
- Improved channel card formatting for different screen resolutions (can now actually read the channel stats card on mobile)
- Decreased line height for status messages in the EPG and M3U tables for better appearance on smaller screens
- Updated the EPG form to match the M3U form for consistency
- Profile selection issues that previously caused WebUI crashes
- Issue with
tvc-guide-id(Gracenote ID) in bulk channel creation - Bug when uploading an M3U with the default user-agent set
- Bug where multiple channel initializations could occur, causing zombie streams and performance issues (choppy streams)
- Better error handling for buffer overflow issues
- Fixed various memory leaks
- Bug in the TV Guide that would crash the web UI when selecting a profile to filter by
- Multiple minor bug fixes and code cleanup
- XtreamCodes Support:
- Initial XtreamCodes client support
- Option to add EPG source with XC account
- Improved XC login and authentication
- Improved error handling for XC connections
- Hardware Acceleration:
- Detection of hardware acceleration capabilities with recommendations (available in logs after startup)
- Improved support for NVIDIA, Intel (QSV), and VAAPI acceleration methods
- Added necessary drivers and libraries for hardware acceleration
- Automatically assigns required permissions for hardware acceleration
- Thanks to @BXWeb, @chris.r3x, @rykr, @j3111, @jesmannstl, @jimmycarbone, @gordlaben, @roofussummers, @slamanna212
- M3U and EPG Management:
- Enhanced M3U profile creation with live regex results
- Added stale stream detection with configurable thresholds
- Improved status messaging for M3U and EPG operations:
- Shows download speed with estimated time remaining
- Shows parsing time remaining
- Added "Pending Setup" status for M3U's requiring group selection
- Improved handling of M3U group filtering
- UI Improvements:
- Added configurable table sizes
- Enhanced video player with loading and error states
- Improved WebSocket connection handling with authentication
- Added confirmation dialogs for critical operations
- Auto-assign numbers now configurable by selection
- Added bulk editing of channel profile membership (select multiple channels, then click the profile toggle on any selected channel to apply the change to all)
- Infrastructure & Performance:
- Standardized and improved the logging system
- New environment variable to set logging level:
DISPATCHARR_LOG_LEVEL(default:INFO, available:TRACE,DEBUG,INFO,WARNING,ERROR,CRITICAL) - Introduced a new base image build process: updates are now significantly smaller (typically under 15MB unless the base image changes)
- Improved environment variable handling in container
- Support for Gracenote ID (
tvc-guide-stationid) - Thanks @rykr - Improved file upload handling with size limits removed
- Issues with profiles not loading correctly
- Problems with stream previews in tables
- Channel creation and editing workflows
- Logo display issues
- WebSocket connection problems
- Multiple React-related errors and warnings
- Pagination and filtering issues in tables
- Optimized uWSGI configuration settings for better server performance
- Improved asynchronous processing by converting additional timers to gevent
- Enhanced EPG (Electronic Program Guide) downloading with proper user agent headers
- Issue with "add streams to channel" functionality to correctly follow disabled state logic
- URL copy buttons for stream and channel URLs
- Manual stream switching ability
- EPG auto-match notifications - Users now receive feedback about how many matches were found
- Informative tooltips throughout the interface, including stream profiles and user-agent details
- Display of connected time for each client
- Current M3U profile information to stats
- Better logging for which channel clients are getting chunks from
- Table System Rewrite: Completely refactored channel and stream tables for dramatically improved performance with large datasets
- Improved Concurrency: Replaced time.sleep with gevent.sleep for better performance when handling multiple streams
- Improved table interactions:
- Restored alternating row colors and hover effects
- Added shift-click support for multiple row selection
- Preserved drag-and-drop functionality
- Adjusted logo display to prevent layout shifts with different sized logos
- Improved sticky headers in tables
- Fixed spacing and padding in EPG and M3U tables for better readability on smaller displays
- Stream URL handling improved for search/replace patterns
- Enhanced stream lock management for better reliability
- Added stream name to channel status for better visibility
- Properly track current stream ID during stream switches
- Improved EPG cache handling and cleanup of old cache files
- Corrected content type for M3U file (using m3u instead of m3u8)
- Fixed logo URL handling in M3U generation
- Enhanced tuner count calculation to include only active M3U accounts
- Increased thread stack size in uwsgi configuration
- Changed proxy to use uwsgi socket
- Added build timestamp to version information
- Reduced excessive logging during M3U/EPG file importing
- Improved store variable handling to increase application efficiency
- Frontend now being built by Yarn instead of NPM
- Issues with channel statistics randomly not working
- Stream ordering in channel selection
- M3U profile name added to stream names for better identification
- Channel form not updating some properties after saving
- Issue with setting logos to default
- Channel creation from streams
- Channel group saving
- Improved error handling throughout the application
- Bugs in deleting stream profiles
- Resolved mimetype detection issues
- Fixed form display issues
- Added proper requerying after form submissions and item deletions
- Bug overwriting tvg-id when loading TV Guide
- Bug that prevented large m3u's and epg's from uploading
- Typo in Stream Profile header column for Description - Thanks @LoudSoftware
- Typo in m3u input processing (tv-chno instead of tvg-chno) - Thanks @www2a
- Issue with dummy EPG calculating hours above 24, ensuring time values remain within valid 24-hour format
- Auto import functionality to properly process old files that hadn't been imported yet, rather than ignoring them
- Issue with stream ordering for channels - resolved problem where stream objects were incorrectly processed when assigning order in channel configurations
- Key to navigation links in sidebar to resolve DOM errors when loading web UI
- Channels that are set to 'dummy' epg to the TV Guide
- Issue preventing dummy EPG from being set
- Channel numbers not saving properly
- EPGs not refreshing when linking EPG to channel
- Improved error messages in notifications
- URL validation for redirect profile:
- Validates stream URLs before redirecting clients
- Prevents clients from being redirected to unavailable streams
- Now tries alternate streams when primary stream validation fails
- Dynamic tuner configuration for HDHomeRun devices:
- TunerCount is now dynamically created based on profile max connections
- Sets minimum of 2 tuners, up to 10 for unlimited profiles
- More robust stream switching:
- Clients now wait properly if a stream is in the switching state
- Improved reliability during stream transitions
- Performance enhancements:
- Increased workers and threads for uwsgi for better concurrency
- Issue with multiple dead streams in a row - System now properly handles cases where several sequential streams are unavailable
- Broken links to compose files in documentation
- Stream preview (not channel)
- Streaming wouldn't work when using default user-agent for an M3U
- WebSockets and M3U profile form issues
Initial beta public release.