21 Commits

Author SHA1 Message Date
Erik Thuning
11917608bb Made raise_for_structure provide better feedback on errors
The function now takes an argument corresponding to the key that is
being worked on. Also made the handling of dict validation more explicit
about keys and the reasoning around why it does what it does.
2024-06-18 11:26:20 +02:00
30361abdd9 VisibilityHandler (#3)
Create a VisibilityHandler

Co-authored-by: nenzen <stefan@nenzen.com>
Reviewed-on: #3
Reviewed-by: erth9960 <thuning@dsv.su.se>
Co-authored-by: Stefan Nenzén <nenzen@dsv.su.se>
Co-committed-by: Stefan Nenzén <nenzen@dsv.su.se>
2024-03-27 14:54:33 +01:00
Erik Thuning
6c11d5578f Added optional support for user-specified notification endpoints in packages 2024-03-26 15:47:39 +01:00
Erik Thuning
a0bba02840 Major updates to the subtitles handler with some knock-on effects
- More than one subtitles handler can be run in parallel
 - Language can be specified in generation tasks
 - Switched to pathlib for path handling in subtitles handler (simpler)
 - Handlers are now instantiated via factory function
2023-11-24 16:17:51 +01:00
Erik Thuning
8c25f811c6 Updated the course format in the validation objects 2023-04-14 11:19:11 +02:00
Erik Thuning
5dcc856177 Moved some functions from utils into more logical places, and opportunistically fixed docstrings to follow the convention 2023-03-27 17:01:59 +02:00
Erik Thuning
278fe30b02 Refactored subtitles handling to include generation via whisper. 2023-03-27 16:36:27 +02:00
Erik Thuning
dac19f6f7f Added the option of multiple subtitle tracks 2022-10-28 11:20:47 +02:00
Erik Thuning
c90ea5966f Allow None in package for duration and creation 2022-10-21 23:12:31 +02:00
Erik Thuning
1a5cade01d Didn't read the docs properly, my solution was correct from the beginning
This reverts commit a12374b35259cc5c3a9152de6b32c2ede093f2fa.
2022-10-21 16:34:18 +02:00
Erik Thuning
a12374b352 Found the proper way to provide a fallback on missing configparser section 2022-10-21 15:29:50 +02:00
Erik Thuning
20a26de102 splitext reutnrs more than one thing 2022-10-21 14:50:02 +02:00
Erik Thuning
1ccd27d65a Implemented slide handler,
moved ffmpeg invocations to utils.py,
moved duration handling to Package class.
2022-10-20 16:49:31 +02:00
Erik Thuning
3ab654d485 Moved ID generation to the distributor
so incoming jobs for new packages get consistent IDs between handlers
2022-10-19 16:20:58 +02:00
Erik Thuning
4e9b3f1aec Jobs without a pkg_id are now properly handled.
Removed premature optimizations from PackageManager
2022-10-18 16:37:29 +02:00
Erik Thuning
f305b57811 Duration is now computed from the streams instead of passed by the user 2022-10-18 14:25:36 +02:00
Erik Thuning
7d403d15cc Minor fixes 2022-10-17 13:18:58 +02:00
Erik Thuning
a40e73f13a Updated slides definition to a simpler format 2022-10-13 09:52:12 +02:00
Erik Thuning
ad9afdfca1 Updated the expected format of slide streams and removed the origin key 2022-10-07 14:39:01 +02:00
Erik Thuning
f8cde16001 Started work on preprocessors 2022-10-03 16:37:56 +02:00
Erik Thuning
ab6de9dc27 Almost there! 2022-09-30 23:55:07 +02:00