Commit graph

123 commits

Author SHA1 Message Date
SergeantPanda
14621598f6 Added url validation for redirect profile. 2025-04-15 08:28:47 -05:00
SergeantPanda
5bb6539586 Fixes multiple streams in a row being dead. 2025-04-15 07:44:08 -05:00
SergeantPanda
02b5fb6fc0 Changed logging level of channel state checks for client. 2025-04-14 21:04:33 -05:00
SergeantPanda
60fd5afd94 More robust stream switches. Has client wait if in switching state. 2025-04-14 21:03:33 -05:00
SergeantPanda
a463d06140 Fixes stream preview. 2025-04-13 10:02:30 -05:00
dekzter
06028334ca fixing reference to null user_agents 2025-04-13 07:44:35 -04:00
SergeantPanda
07485f87a3 Add stream health recovery and reconnection logic 2025-04-10 10:14:22 -05:00
SergeantPanda
6ccc2b9a6d Enhance stream retrieval process with error handling and retry logic
- Updated `get_stream` method to return error reasons for better debugging.
- Improved `generate_stream_url` to handle errors and log specific issues.
- Implemented retry mechanism in `stream_ts` view for obtaining streams with exponential backoff.
- Added new configuration options for connection timeout and retry intervals.
2025-04-10 08:38:53 -05:00
SergeantPanda
5c74aec790 Fixes channel switching issue (release lock faster) 2025-04-10 07:38:29 -05:00
dekzter
7351264e8a centralized and lazy-loaded redis client singleton, check for manage.py commands so we don't init proxyservers (redis connection), put manage commmands before starting uwsgi 2025-04-04 16:18:12 -04:00
SergeantPanda
cf059045c1 Decoupled from global redis client. 2025-04-04 14:21:27 -05:00
dekzter
c5e0de5d48 logos, channel numbers, websocket regex test so we can properly test against python regex and not javascript 2025-04-02 16:27:28 -04:00
SergeantPanda
8292e8ae17 Change next_stream and change_stream back to authentication required after changing for testing. 2025-03-28 11:58:07 -05:00
SergeantPanda
530788877d Implement heartbeat thread exit condition after consecutive empty checks 2025-03-28 09:39:35 -05:00
SergeantPanda
cbf4fa33d6 Better method to keep track of next stream to use. 2025-03-28 09:04:04 -05:00
SergeantPanda
2f995b16fd Fixes stream switches not honouring user selected order. 2025-03-28 08:50:57 -05:00
SergeantPanda
e2d9e233da Added ability to send a next stream command. 2025-03-27 20:49:24 -05:00
SergeantPanda
ce6e019e6a Add m3u_profile (id) to redis when channel is initialized. 2025-03-27 19:24:43 -05:00
SergeantPanda
4e9a52c80e Removed invalid character in logging. 2025-03-27 18:53:59 -05:00
SergeantPanda
3f440d855e Replaced invalid character in logs. 2025-03-27 18:50:48 -05:00
SergeantPanda
d7d3138703 Changed variable name for clarity. 2025-03-27 17:52:27 -05:00
SergeantPanda
b9f4893261 Fixes broken channels stats after field name change from 'profile' to 'stream_profile' 2025-03-27 16:11:04 -05:00
dekzter
bf0c50dab2 Merge branch 'epg-refactor' into stream-previews 2025-03-27 09:44:07 -04:00
dekzter
91a85020c3 modifications to allow previewing of a raw stream 2025-03-27 09:26:04 -04:00
SergeantPanda
9ab76c3129 updated variable names for clarity. 2025-03-25 13:36:55 -05:00
SergeantPanda
4283162ba9 Switched profile to stream_profile in channel_service 2025-03-25 13:04:51 -05:00
SergeantPanda
7bcfc74c13 Missed a couple constants in try next stream. 2025-03-25 12:16:01 -05:00
SergeantPanda
560345f7b1 Changed profile to stream_profile and utilized constants more for consistency. 2025-03-25 12:13:06 -05:00
SergeantPanda
1f6a33d9f7 Added bitrates for channels as well as total data transferred. 2025-03-24 18:02:21 -05:00
SergeantPanda
2b42838bfe Added current bitrate for client and renamed transfer_rate_KBps to avg_rate_KBps for clarity. 2025-03-24 17:08:17 -05:00
SergeantPanda
b9d0b07d69 Added current bitrate for client and renamed transfer_rate_KBps to avg_rate_KBps for clarity. 2025-03-24 17:06:01 -05:00
dekzter
cb013c0a0d merged in singular-redis branch 2025-03-22 09:58:48 -04:00
dekzter
42587a9f1a merged in main 2025-03-22 09:56:36 -04:00
dekzter
d6e05445f3 m3u group filters 2025-03-22 09:56:00 -04:00
SergeantPanda
d622c96aba Improved connection handling for redis pubsub. 2025-03-22 08:48:39 -05:00
SergeantPanda
77002beaac Improved logging to include current component name. 2025-03-22 07:42:46 -05:00
SergeantPanda
d04ba07d10 Added client speed statistics to client metadata in redis. 2025-03-21 19:59:54 -05:00
SergeantPanda
efaa7f7195 Singular redis-client. 2025-03-21 10:55:13 -05:00
SergeantPanda
4738d301d1 Fixed regression with buffer checks when clients should be disconnecting due to failure. 2025-03-20 21:03:01 -05:00
SergeantPanda
cb02069fb7 Fixed incorrect logic on stepped retry timers. 2025-03-20 19:03:26 -05:00
dekzter
d3f03145e7 profile_value needs to be ID so we can identify it later 2025-03-20 17:32:34 -04:00
SergeantPanda
ed00f2f876 Fixed streams not switching to FFmpeg if HLS is detected. 2025-03-20 16:12:08 -05:00
SergeantPanda
6d84821942 Adds better checks for a channel that is partially initialized and clears it. 2025-03-20 15:56:34 -05:00
SergeantPanda
d6a452548c Automatic stream switching is working. 2025-03-20 15:28:12 -05:00
SergeantPanda
dc43fb41b5 More refactoring. 2025-03-20 08:45:23 -05:00
SergeantPanda
86e6c942d7 Final refactoring and minor bug fix for transcode stream switching. 2025-03-19 20:22:13 -05:00
SergeantPanda
569846a687 Lots more refactoring. 2025-03-19 19:45:29 -05:00
SergeantPanda
f03b885d71 Lots more refactoring. 2025-03-19 19:03:33 -05:00
SergeantPanda
59245b1401 More refactoring. 2025-03-19 16:45:47 -05:00
SergeantPanda
8f1c233d64 Moved stream generator out of stream_ts and into stream_generator.py 2025-03-19 16:36:01 -05:00