No description
Find a file
None c841cfc8fc Fix #861: Prevent M3U endless downloading caused by Redis lock expiry
Large M3U downloads that exceed the 300s Redis lock TTL caused Celery Beat
to re-queue duplicate tasks, creating overlapping downloads that never complete.

Files changed:

- core/utils.py: Add TaskLockRenewer class — a daemon thread that periodically renews Redis lock TTL (every 120s) to prevent expiry during long-running tasks.

- apps/m3u/tasks.py: Apply TaskLockRenewer to refresh_single_m3u_account and refresh_m3u_groups; add HTTP timeout (30s connect, 60s read) to M3U download (the only download path missing one); stream M3U download to disk instead of accumulating in memory; add Celery task time limits (1 hour hard limit).

- apps/epg/tasks.py: Apply TaskLockRenewer to refresh_epg_data and parse_programs_for_tvg_id; add Celery task time limits (30 min / 1 hour).

Verified with a throttled test server: locks renewed at T+120s, T+240s, T+360s; 50,000 streams processed with no duplicate tasks.
2026-02-23 00:34:28 -06:00
.github feat: migrate to UV 2026-01-23 22:45:37 +01:00
.idea Initial commit 2025-02-18 11:14:09 -06:00
apps Fix #861: Prevent M3U endless downloading caused by Redis lock expiry 2026-02-23 00:34:28 -06:00
core Fix #861: Prevent M3U endless downloading caused by Redis lock expiry 2026-02-23 00:34:28 -06:00
dispatcharr hardening of script handling with configurable variables - making script execution more secure 2026-02-15 07:37:00 -05:00
docker Merge pull request #974 from patrickjmcd/main 2026-02-17 10:44:15 -06:00
docs/images Updated Readme. 2026-02-11 16:27:31 -06:00
frontend Chore: Update NPM packages. 2026-02-21 16:24:40 -06:00
scripts feat: Add Redis authentication support for modular deployment 2026-02-03 21:42:06 -06:00
.dockerignore Refactor for uv transition. 2026-01-30 12:12:42 -06:00
.gitattributes Added gitattributes to support multi-platform development without getting noisy diffs. 2025-03-24 09:13:29 -05:00
.gitignore Remove uv.lock and add to gitignore. This gets generated automatically during build anyway and would add confusion to users not using our container. 2026-01-29 17:24:41 -06:00
.python-version feat: migrate to UV 2026-01-23 22:45:37 +01:00
CHANGELOG.md Chore: Update NPM packages. 2026-02-21 16:24:40 -06:00
debian_install.sh feat: migrate to UV 2026-01-23 22:45:37 +01:00
fixtures.json Correct profile name casing for FFmpeg, Streamlink, and VLC in fixtures.json 2025-12-23 15:17:50 -06:00
LICENSE Create LICENSE 2025-02-18 11:22:47 -06:00
manage.py Initial commit 2025-02-18 11:14:09 -06:00
Plugins.md Plugin fixes/updates 2026-02-05 20:05:29 -06:00
pyproject.toml specify minimum version for django-celery-beat 2026-02-20 16:52:48 -06:00
README.md Add clarity to roadmap. 2026-02-11 16:27:40 -06:00
version.py Release v0.19.0 2026-02-10 21:15:08 +00:00

🎬 Dispatcharr — Your Ultimate IPTV & Stream Management Companion

Dispatcharr Logo


📖 What is Dispatcharr?

Dispatcharr is an open-source powerhouse for managing IPTV streams, EPG data, and VOD content with elegance and control.
Born from necessity and built with passion, it started as a personal project by OkinawaBoss and evolved with contributions from legends like dekzter, SergeantPanda and Bucatini.

Think of Dispatcharr as the *arr family's IPTV cousin — simple, smart, and designed for streamers who want reliability and flexibility.


🎯 What Can I Do With Dispatcharr?

Dispatcharr empowers you with complete IPTV control. Here are some real-world scenarios:

💡 Consolidate Multiple IPTV Sources
Combine streams from multiple providers into a single interface. Manage, filter, and organize thousands of channels with ease.

📺 Integrate with Media Centers
Use HDHomeRun emulation to add virtual tuners to Plex, Emby, or Jellyfin. They'll discover Dispatcharr as a live TV source and can record programs directly to their own DVR libraries.

📡 Create a Personal TV Ecosystem
Merge live TV channels with custom EPG guides. Generate XMLTV schedules or use auto-matching to align channels with existing program data. Export as M3U, Xtream Codes API, or HDHomeRun device.

🔧 Transcode & Optimize Streams
Configure output profiles with FFmpeg transcoding to optimize streams for different clients — reduce bandwidth, standardize formats, or add audio normalization.

🔐 Centralize VPN Access
Run Dispatcharr through a VPN container (like Gluetun) so all streams route through a single VPN connection. Your clients access geo-blocked content without needing individual VPNs, reducing bandwidth overhead and simplifying network management.

🚀 Monitor & Manage in Real-Time
Track active streams, client connections, and bandwidth usage with live statistics. Monitor buffering events and stream quality. Automatic failover keeps viewers connected when streams fail—seamlessly switching to backup sources without interruption.

👥 Share Access Safely
Create multiple user accounts with granular permissions. Share streams via M3U playlists or Xtream Codes API while controlling which users access which channels, profiles, or features. Network-based access restrictions available for additional security.

🔌 Extend with Plugins
Build custom integrations using Dispatcharr's robust plugin system. Automate tasks, connect to external services, or add entirely new workflows.


Why You'll Love Dispatcharr

Stream Proxy & Relay — Intercept and proxy IPTV streams with real-time client management
M3U & Xtream Codes — Import, filter, and organize playlists with multiple backend support
EPG Matching & Generation — Auto-match EPG to channels or generate custom TV guides
Video on Demand — Stream movies and TV series with rich metadata and IMDB/TMDB integration
Multi-Format Output — Export as M3U, XMLTV EPG, Xtream Codes API, or HDHomeRun device
Real-Time Monitoring — Live connection stats, bandwidth tracking, and automatic failover
Stream Profiles — Configure different stream profiles for various clients and bandwidth requirements
Flexible Streaming Backends — VLC, FFmpeg, Streamlink, or custom backends for transcoding and streaming
Multi-User & Access Control — Granular permissions and network-based access restrictions
Plugin System — Extend functionality with custom plugins for automation and integrations
Fully Self-Hosted — Total control, no third-party dependencies


Screenshots

Channels TV Guide Stats & Monitoring M3U & EPG Manager VOD Library Settings

🛠️ Troubleshooting & Help


🚀 Get Started in Minutes

docker pull ghcr.io/dispatcharr/dispatcharr:latest
docker run -d \
  -p 9191:9191 \
  --name dispatcharr \
  -v dispatcharr_data:/data \
  ghcr.io/dispatcharr/dispatcharr:latest

Customize ports and volumes to fit your setup.


🐋 Docker Compose Options

Use Case File Description
All-in-One Deployment docker-compose.aio.yml Recommended! A simple, all-in-one solution — everything runs in a single container for quick setup.
Modular Deployment docker-compose.yml Separate containers for Dispatcharr, Celery, Redis, and Postgres — perfect if you want more granular control.
Development Environment docker-compose.dev.yml Developer-friendly setup with pre-configured ports and settings for contributing and testing.

🛠️ Building from Source

⚠️ Warning: Not officially supported — but if you're here, you know what you're doing!

If you are running a Debian-based OS, use the debian_install.sh script. For other OS, contribute a script and well add it!


🤝 Want to Contribute?

We welcome PRs, issues, ideas, and suggestions!
Here's how you can join the party:

  • Follow our coding style and best practices.
  • Be respectful, helpful, and open-minded.
  • Respect the CC BY-NC-SA license.

Whether it's writing docs, squashing bugs, or building new features, your contribution matters! 🙋


📚 Documentation & Roadmap

Upcoming Features (in no particular order):

  • 🎬 VOD Management Enhancements — Granular metadata control and cleanup of unwanted VOD content
  • 📁 Media Library — Import local files and serve them over XC API
  • 👥 Enhanced User Management — Customizable XC API output per user account
  • 🔄 Output Stream Profiles — Different clients with different stream profiles (bandwidth control, quality tiers)
  • 🔌 Fallback Videos — Automatic fallback content when channels are unavailable
  • 📡 Webhooks — Event-driven integrations and automations

❤️ Shoutouts

A huge thank you to all the incredible open-source projects and libraries that power Dispatcharr. We stand on the shoulders of giants!


⚖️ License

Dispatcharr is licensed under CC BY-NC-SA 4.0:

  • BY: Give credit where credit's due.
  • NC: No commercial use.
  • SA: Share alike if you remix.

For full license details, see LICENSE.


✉️ Connect With Us

Have a question? Want to suggest a feature? Just want to say hi?
➡️ Open an issue or reach out on Discord.


🚀 Happy Streaming! The Dispatcharr Team