Commit graph

218 commits

Author SHA1 Message Date
f461f58a00 change message since we dont know the livestream name at this point 2024-01-17 05:38:06 +02:00
faf5aa7f22 remove the process.id in the exception 2024-01-17 05:36:40 +02:00
146a171628 fix indent 2024-01-17 05:30:30 +02:00
b3480c8bd2 refactor announement 2024-01-17 05:27:30 +02:00
eacea567ba debug 2024-01-17 05:16:36 +02:00
41e2e5f77c dont add announcement job if one exists 2024-01-17 05:13:57 +02:00
751edc5903 chatgpt said i should put a comma there :D 2024-01-17 05:01:25 +02:00
03a629e13b rename strings 2024-01-17 04:58:56 +02:00
26b413725f set annoncement trigger 2024-01-17 04:28:27 +02:00
7dcac2f191 remove announcement job after we fully check the db for live streams 2024-01-17 04:26:42 +02:00
0bbc81e50f debug 2024-01-17 04:13:02 +02:00
22646613f8 verbose annoucement 2024-01-17 04:08:55 +02:00
046c0212c8 test logger_discord 2024-01-17 04:01:48 +02:00
e4383d8641 lower retry attempts to 15 2024-01-17 04:01:13 +02:00
49f155bc8b test logging 2024-01-17 03:49:40 +02:00
24f8a0faa1 announce time in utc 2024-01-17 03:20:55 +02:00
6f02e20922 remove announce only if it exists 2024-01-17 03:18:58 +02:00
b887707450 record if prio = 2 2024-01-17 03:13:45 +02:00
be3b09d3a3 announce live channel 2024-01-17 02:42:32 +02:00
4ab45cd8bc use the interval trigger keyword 2024-01-16 19:35:35 +02:00
03968df87b import the trigger 2024-01-16 19:31:05 +02:00
4c0aba233b set the trigger 2024-01-16 19:29:52 +02:00
51ed9c4aed schedule the test task to run every 5 seconds 2024-01-16 19:28:10 +02:00
4cb5695855 start the bot withing asincio event loop 2024-01-16 19:23:27 +02:00
8156cb5a61 remove await from starting the scheduler 2024-01-16 19:19:54 +02:00
123f1a0c65 remove the task decoration 2024-01-16 19:18:10 +02:00
c77c91dbe1 iterate values of the dict items 2024-01-16 19:11:09 +02:00
d93992b198 fix missing await 2024-01-16 18:59:24 +02:00
c2919314b0 fix time function context 2024-01-16 18:57:34 +02:00
d839b229f7 fix e typo 2024-01-16 18:56:20 +02:00
ee103fca77 implement counter show fn 2024-01-16 18:50:59 +02:00
20eb7095d2 test 2024-01-16 18:45:24 +02:00
0c77af932b test 2024-01-16 18:44:04 +02:00
deea320d98 return json from the db request 2024-01-16 18:42:23 +02:00
5662f0eca3 test 2024-01-16 18:39:59 +02:00
76347bfc48 disable empty db check 2024-01-16 18:38:56 +02:00
cb0ee37d91 test 2024-01-16 18:37:34 +02:00
049c2cb0db iterate epg database 2024-01-16 18:34:04 +02:00
f02c4bd93c test 2024-01-16 18:25:39 +02:00
c7d4f0b332 send the context to the tasksa 2024-01-16 18:22:34 +02:00
1bdb41f75d set intents 2024-01-16 18:16:02 +02:00
83ad5f2613 set bot intents as default() 2024-01-16 18:12:09 +02:00
092682d725 combine asyncio and discord event loops 2024-01-16 18:06:57 +02:00
fcdef2e17c add the apscheduler 2024-01-16 17:42:22 +02:00
bc2796492a rename main app modules 2024-01-16 17:31:40 +02:00
1019c3f3da add requests library 2024-01-16 05:35:22 +02:00
bc96b28091 print database 2024-01-16 05:32:57 +02:00
6917f489d3 move hello function 2024-01-15 23:48:20 +02:00
e94081b747 test discord.py 2024-01-15 05:07:15 +02:00
13fb4161bf temporary disable sys.exit 2024-01-15 04:55:12 +02:00
05f9770bfe dix requirements.txt filename 2024-01-15 04:50:55 +02:00
593877441f define example bot 2024-01-15 04:45:31 +02:00
728c368db0 define discordbot container 2024-01-15 04:42:05 +02:00
6efa107932 expand scheduler api with about section and db dump 2024-01-15 03:38:13 +02:00
818540de67 increase enable_delay 2024-01-15 02:02:58 +02:00
bc9691f5b8 fix a bug that doesnt reset prio on fallback 2024-01-15 01:12:33 +02:00
c05702cd4a include stream_name into the playhead 2024-01-14 22:38:16 +02:00
8f58cb0827 debug process 2024-01-14 16:50:06 +02:00
b6c0067819 import sys 2024-01-14 16:22:32 +02:00
ee39e064c3 exit if we cant login to tha core api 2024-01-14 16:22:14 +02:00
e80c5233c1 remove html template 2024-01-14 16:02:23 +02:00
ef83562cbc delay the live stream playing and recording 2024-01-13 04:10:04 +02:00
0f3486a74e set enable_delay variable so we can give some time for the incoming stream to be ready 2024-01-13 03:59:50 +02:00
df3cbb2781 hack a sleep so we can recieve a proper hls stream 2024-01-13 03:45:12 +02:00
62a4aa9596 copy audio and video codec on recording 2024-01-13 03:04:22 +02:00
2b1acc7f74 add ffmpeg Progress 2024-01-13 01:45:45 +02:00
88c5055858 move recorded file to the vod dir 2024-01-13 01:14:14 +02:00
b1b552a9d0 define comments and rec_api variable 2024-01-13 00:09:44 +02:00
cd5c15f532 reset rechead after we finish the rec job 2024-01-12 23:29:16 +02:00
69ebfae058 delay each check for 5 seconds 2024-01-12 22:47:59 +02:00
4a9ae58740 cancel recording after 20 attempts 2024-01-12 22:43:06 +02:00
39ab8c23d2 check if stream_hls_url exists before we exec the recording 2024-01-12 22:40:37 +02:00
Daniel afx
2409d529ed fix missing : 2024-01-12 16:55:42 +02:00
Daniel afx
a412d8c205 implement stream recorder 2024-01-12 16:54:53 +02:00
Daniel afx
f1d011057a define ffmpeg recorder function 2024-01-11 23:07:31 +02:00
e92e4c5097 instal ffmpeg with python bindings inside the scheduler 2024-01-09 16:26:48 +02:00
55d731b709 dont search for fallbacks wthout updating the db first 2024-01-07 06:32:31 +02:00
807a4d0ebb remove verbose funcs 2024-01-07 06:05:56 +02:00
2fc10cf2e6 bootstrap the playhead 2024-01-07 05:55:09 +02:00
a6caa2b0bf define fallback_search function 2024-01-07 05:47:31 +02:00
dc895e2318 execute core_api_init 2024-01-07 05:31:51 +02:00
567bda270d show database state every 3 minutes 2024-01-07 05:26:15 +02:00
cc6e022d4f convert data 2024-01-07 05:16:29 +02:00
b2181fe25c handle removing running stream 2024-01-07 05:08:54 +02:00
2426c898d2 update prio 2024-01-07 04:02:15 +02:00
967b2a4166 update the head based on global and stream prio 2024-01-07 04:01:27 +02:00
d1841f377a exec core_api_sync one time on init 2024-01-07 03:27:14 +02:00
795682484c handle removing missing job ids 2024-01-07 03:25:53 +02:00
e4bd771275 fix the mess created by chatgpt 2024-01-07 03:14:15 +02:00
2b0ba2181b remove hardcoded fallback 2024-01-07 02:43:23 +02:00
abf9900f63 rearrange channel fn args 2024-01-07 02:35:00 +02:00
f4d8bc152c the payload is not needed, mr gpt! 2024-01-07 02:32:04 +02:00
cb9c0bb41d refactor process_running_channel without chatgpt :D 2024-01-07 02:25:21 +02:00
06da63cd0c refactor using chatgpt :] 2024-01-07 02:08:25 +02:00
64373534d6 refactor init variables and modules 2024-01-07 02:03:15 +02:00
d6906ea14f set scheduler log level from env var 2024-01-07 01:48:26 +02:00
3ca3302bff show head position and fix the exception handler type 2024-01-07 01:47:51 +02:00
a6469fe208 make tick 180 minutes and use hour for start_at epg 2024-01-07 01:42:39 +02:00
f2f10e7aa2 implement apscheduler 2024-01-07 01:32:06 +02:00
dc96ce83ff flask-apcheduler experiments 2024-01-06 22:26:03 +00:00
a278d817cf set fallback url 2024-01-06 04:59:24 +00:00
d5a0685dac debug epg 2024-01-06 06:49:18 +02:00
218331efc1 change the way we read the epg 2024-01-06 06:48:06 +02:00
0f713cdc53 run all jobs on start 2024-01-06 06:15:53 +02:00
e07261deed implement schedule 1.2.1 2024-01-06 06:03:02 +02:00
dbe6fdbd84 finetune gallery ffmpeg settings 2024-01-06 01:02:21 +00:00
62932bd0cd update readme for vod viewer 2024-01-05 16:15:21 +00:00
ed6d9e63b2 log error 2024-01-04 05:43:19 +00:00
b862e7a9ac remove debug log 2024-01-04 04:07:31 +00:00
0b1719992d fix typo 2024-01-04 03:45:42 +00:00
e65139ce82 handle exception of the client function 2024-01-04 03:44:23 +00:00
e2c5eaf2e5 remove test archive files 2024-01-04 03:33:18 +00:00
fc21a2a2d8 exclude jsons from restreamer 2024-01-02 01:48:37 +00:00
140c499540 fix scheduler log level env var 2023-12-31 14:33:50 +00:00
d1986885f6 remove docker-compose.yml.dist 2023-12-31 14:32:41 +00:00
44cb8eeb2d set segment delete at 168h 2023-12-31 05:08:03 +00:00
2dde22b448 include the rest of the files 2023-12-31 04:15:22 +00:00
1f46c23fd8 migrate scheduler and archive services 2023-12-31 02:54:40 +00:00