Commit graph

68 commits

Author SHA1 Message Date
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
8292e8ae17 Change next_stream and change_stream back to authentication required after changing for testing. 2025-03-28 11:58:07 -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
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
560345f7b1 Changed profile to stream_profile and utilized constants more for consistency. 2025-03-25 12:13:06 -05:00
SergeantPanda
77002beaac Improved logging to include current component name. 2025-03-22 07:42:46 -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
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
dekzter
7a7cd0711d live stats dashboard 2025-03-17 12:42:58 -04:00
dekzter
b159d61905 authentication added 2025-03-16 20:10:54 -04:00
SergeantPanda
8bb9317f92 Individual client stopping is fully working now. 2025-03-16 18:11:35 -05:00
SergeantPanda
03bfaeb24f Adding stop client abilities. Still needs some work. 2025-03-16 17:16:10 -05:00
SergeantPanda
6f802094a7 Fixes channels not properly cleaning up. 2025-03-16 16:09:02 -05:00
SergeantPanda
9c6f31e014 Channel stop is working correclty. 2025-03-16 12:35:06 -05:00
SergeantPanda
e47c3328e4 Added stop channel view. 2025-03-16 11:45:47 -05:00
dekzter
4cef55a9c2 updated channel with uuid 2025-03-16 09:46:07 -04:00
dekzter
9711d7ab34 modified database fields for consistency, removed custom_url from streams (no longer needed) 2025-03-16 09:07:10 -04:00
SergeantPanda
5da288b15b Added channel profile to metadata. 2025-03-15 18:18:22 -05:00
SergeantPanda
a4c69710b7 Stream switching is working for both proxy and transcode 2025-03-15 17:23:06 -05:00
SergeantPanda
8f8b4ef371 More refractoring and slight modifications. 2025-03-15 14:35:34 -05:00
SergeantPanda
0be133d341 More refractoring. 2025-03-15 12:09:33 -05:00
SergeantPanda
85bb7aa0ec Even more refractoring. 2025-03-15 11:44:59 -05:00
SergeantPanda
0fd3354332 More refractoring 2025-03-15 10:51:53 -05:00
SergeantPanda
8ed1a36535 Lots of refractoring. 2025-03-15 09:44:38 -05:00
SergeantPanda
923e939482 Fixes user-agents not populating correctly. 2025-03-14 17:01:34 -05:00
dekzter
05d9ea30e2 new migrations, setting proxy and redirect profiles, setting locked profiles 2025-03-14 16:12:37 -04:00
dekzter
a58993ba7d merged in sergeantpanda upstream 2025-03-14 10:19:22 -04:00
dekzter
8b6b16232b re-added in socket streaming for transcode processes 2025-03-14 10:08:01 -04:00
SergeantPanda
140937a192 Added detailed status for active channels including connected clients. 2025-03-13 20:54:30 -05:00
dekzter
0607957f67 integrating proxy with rest of the application, added transcoding to ts proxy 2025-03-13 19:22:35 -04:00
SergeantPanda
69f4ceb137 Streaming is working fairly well now. 2025-03-13 15:56:04 -05:00
SergeantPanda
317874b5b8 Imporoved logging. 2025-03-13 14:33:00 -05:00
SergeantPanda
286a22adc4 All functionality seems to be working now with HTTP instead of sockets. 2025-03-13 14:17:39 -05:00
SergeantPanda
29b97731b4 Fixes duplicate clients. 2025-03-13 13:31:47 -05:00
SergeantPanda
d00aa3444e Switched back to http connections instead of socket. 2025-03-13 13:15:48 -05:00
SergeantPanda
3483f01637 Playing with chunk sizes with a more basic config. 2025-03-13 11:11:31 -05:00
SergeantPanda
987a8606a8 Removed packet processing. 2025-03-13 09:48:37 -05:00
SergeantPanda
1284567409 Client cleanup is working much better now. 2025-03-11 22:07:19 -05:00
SergeantPanda
11f5ab4119 Got channel status working more reliably. 2025-03-11 21:40:00 -05:00