202 Commits

Author SHA1 Message Date
Erik Thuning
f772aa5033 Missing import 2022-10-20 17:01:04 +02:00
Erik Thuning
782f994125 Typo 2022-10-20 16:51:13 +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
d609173dca Revert "Hander.validate() is now a no-op"
This reverts commit c0d8307bb126039c7931025b1ff75ea656818938.
2022-10-20 14:13:07 +02:00
Erik Thuning
48a825f245 Added pattern matching to incoming queue item filenames 2022-10-20 14:04:46 +02:00
Erik Thuning
cdc3af2187 Worker pool is now shared between handlers 2022-10-20 13:25:13 +02:00
Erik Thuning
bcc91cbcb3 Reordered imports 2022-10-20 13:23:37 +02:00
Erik Thuning
a6c714de33 TranscodeHandler now uses a multiprocessing pool for transcode jobs 2022-10-19 17:04:30 +02:00
Erik Thuning
3ce89b8056 Package IDs are now properly handled at the start of the pipeline 2022-10-19 17:01:29 +02:00
Erik Thuning
e00bbdab60 Forgot to remove an import 2022-10-19 16:23:04 +02:00
Erik Thuning
83b3ca4900 Shorter dict accesses 2022-10-19 16:22:11 +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
9c5744d686 Error fixes 2022-10-19 10:19:48 +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
917b8f133c Efficiency 2022-10-18 14:25:18 +02:00
Erik Thuning
89316f8024 Docstring shouldn't lie 2022-10-18 14:24:08 +02:00
Erik Thuning
3001c9fb7a streams key now always exists in a package 2022-10-18 14:23:29 +02:00
Erik Thuning
3850b518fc Added audio handler, reordered handler imports and list to alphabetical 2022-10-18 14:21:11 +02:00
Erik Thuning
0c1093f72b Formatting 2022-10-18 14:16:09 +02:00
Erik Thuning
ef6bd5831d Moving to dataclasses for complex queue items 2022-10-17 17:10:16 +02:00
Erik Thuning
398f59e66b Fixes 2022-10-17 13:56:54 +02:00
Erik Thuning
c5e274544f Actually starting preprocessor threads might be useful 2022-10-17 13:55:55 +02:00
Erik Thuning
484b868870 Exceptions don't have a message field 2022-10-17 13:29:17 +02:00
Erik Thuning
31a291210d Prepare notifier for remote notifications,
only send necessary config
2022-10-17 13:19:36 +02:00
Erik Thuning
7d403d15cc Minor fixes 2022-10-17 13:18:58 +02:00
Erik Thuning
6affc6f0ae Removed dictionary item alignment for PEP 8 compliance,
jobspec -> queueitem for understandability
2022-10-14 16:34:01 +02:00
Erik Thuning
c0d8307bb1 Hander.validate() is now a no-op 2022-10-14 16:32:19 +02:00
Erik Thuning
1004afa958 Removed unused imports 2022-10-14 15:55:18 +02:00
Erik Thuning
21750aa9d2 Restructured config passing 2022-10-14 15:15:55 +02:00
Erik Thuning
bd9f31f31d Added localizations for eduTypes 2022-10-14 11:22:50 +02:00
Erik Thuning
725c221ee9 TODO stuff 2022-10-13 17:05:20 +02:00
Erik Thuning
bfb62c337f Added remaining preprocessors,
minor update to daisy class for educationalType lookup,
updated example config to reflect preprocessor needs
2022-10-13 17:04:04 +02:00
Erik Thuning
18aa270f93 Added daisy API access to preprocessors 2022-10-13 13:45:21 +02:00
Erik Thuning
a40e73f13a Updated slides definition to a simpler format 2022-10-13 09:52:12 +02:00
Erik Thuning
5c3ee40e85 made error notification calls consistent 2022-10-07 19:21:40 +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
98dd209370 Shortened the file names of handlers and added commented entries for coming handler types 2022-10-07 14:37:54 +02:00
Erik Thuning
f19974ab9a Added validation step before submitting to preprocessor 2022-10-07 13:53:24 +02:00
Erik Thuning
5b73b21cb6 Added config to constructor and added validate(). Removed create_pkgid(). 2022-10-07 13:51:30 +02:00
Erik Thuning
cdea94b167 Started passing config to handler and preprocessor init functions
Also distrib -> distributor
2022-10-07 13:42:30 +02:00
Erik Thuning
6f53fc7a4b Preprocessors now get optional config 2022-10-07 13:41:39 +02:00
Erik Thuning
4e08ca3e24 Now passing optional configuration to each handler 2022-10-07 13:40:48 +02:00
Erik Thuning
f8cde16001 Started work on preprocessors 2022-10-03 16:37:56 +02:00
Erik Thuning
e888ec4f65 Cleanup 2022-10-03 14:30:47 +02:00
Erik Thuning
eeb3e62fed Stub for the SlidesHandler class 2022-10-03 14:02:59 +02:00
Erik Thuning
ab6de9dc27 Almost there! 2022-09-30 23:55:07 +02:00
Erik Thuning
889665941c The general flow works and passes tests! 2022-09-28 22:30:38 +02:00
Erik Thuning
949eb4f04f PRogress is being made! 2022-09-27 17:38:18 +02:00
Erik Thuning
93ce5cc082 Still experimenting 2022-09-23 16:41:58 +02:00