Dispatcharr/core/migrations
SergeantPanda 89a23164ff Enhancement: Add system event logging and viewer with M3U/EPG endpoint caching
System Event Logging:
- Add SystemEvent model with 15 event types tracking channel operations, client connections, M3U/EPG activities, and buffering events
- Log detailed metrics for M3U/EPG refresh operations (streams/programs created/updated/deleted)
- Track M3U/EPG downloads with client information (IP address, user agent, profile, channel count)
- Record channel lifecycle events (start, stop, reconnect) with stream and client details
- Monitor client connections/disconnections and buffering events with stream metadata

Event Viewer UI:
- Add SystemEvents component with real-time updates via WebSocket
- Implement pagination, filtering by event type, and configurable auto-refresh
- Display events with color-coded badges and type-specific icons
- Integrate event viewer into Stats page with modal display
- Add event management settings (retention period, refresh rate)

M3U/EPG Endpoint Optimizations:
- Implement content caching with 5-minute TTL to reduce duplicate processing
- Add client-based event deduplication (2-second window) using IP and user agent hashing
- Support HEAD requests for efficient preflight checks
- Cache streamed EPG responses while maintaining streaming behavior for first request
2025-11-20 17:41:06 -06:00
..
0001_initial.py new migrations 2025-03-05 17:18:04 -05:00
0002_preload_user_agents.py initial migrations 2025-03-01 19:02:21 -05:00
0003_preload_stream_profiles.py initial migrations 2025-03-01 19:02:21 -05:00
0004_preload_core_settings.py initial migrations 2025-03-01 19:02:21 -05:00
0005_streamprofile_locked_alter_streamprofile_command_and_more.py new migrations, setting proxy and redirect profiles, setting locked profiles 2025-03-14 16:12:37 -04:00
0006_set_locked_stream_profiles.py another ffmpeg update 2025-03-17 20:44:12 -04:00
0007_create_proxy_and_redirect_stream_profiles.py modified database fields for consistency, removed custom_url from streams (no longer needed) 2025-03-16 09:07:10 -04:00
0008_rename_profile_name_streamprofile_name_and_more.py modified database fields for consistency, removed custom_url from streams (no longer needed) 2025-03-16 09:07:10 -04:00
0009_m3u_hash_settings.py Change default M3U hash key to URL only for new installs. 2025-10-02 09:28:02 -05:00
0010_reload_additional_settings.py added preferred region setting and default 2025-04-03 12:41:35 -04:00
0011_fix_stream_profiles_and_user_agents.py migration to fix incorrect user-agent for tivimate and update streamlink default profile 2025-04-04 10:57:33 -04:00
0012_default_active_m3u_accounts.py setting for auto-importing mapped files 2025-04-11 15:41:44 -04:00
0013_default_network_access_settings.py looooots of updates for user-management, initial commit of access control 2025-05-31 18:01:46 -04:00
0014_default_proxy_settings.py Prepopulate settings in database. 2025-06-13 14:51:56 -05:00
0015_dvr_templates.py Combined migrations 2025-09-04 14:36:14 -05:00
0016_update_dvr_template_paths.py Fix incorrect paths for DVR and Plugins. 2025-09-13 11:49:04 -05:00
0017_systemevent.py Enhancement: Add system event logging and viewer with M3U/EPG endpoint caching 2025-11-20 17:41:06 -06:00
__init__.py Pre Alpha v4 2025-02-22 20:43:55 -06:00