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
e310f9c529
Refactored the ldap class to use a new connection for each request.
...
This eliminates dangling connections.
2023-03-15 11:04:49 +01:00
Erik Thuning
826f548e63
Create a temporary copy of the existing package state,
...
send that to _handle() methods and clean up after handling is done.
2023-03-15 11:04:24 +01:00
Erik Thuning
b1c74aa86b
Added existing package data to handler input
2023-03-14 16:54:04 +01:00
Erik Thuning
6fd3c3b256
Removed obsolete comment
2023-03-14 16:32:28 +01:00
Erik Thuning
b8834ce7d6
Renamed utils.ffmpegjob to utils.asyncjob in preparation for also running whisper jobs through the same function
2023-03-10 15:45:00 +01:00
Erik Thuning
8e7d92962f
Added logging to Distributor and QueueReader
2022-12-07 16:24:21 +01:00
Erik Thuning
a12fc96d67
asdict() call was missing from http notification function
2022-12-07 16:14:11 +01:00
Erik Thuning
cf92d2490c
Logging in notifier
2022-12-07 16:13:53 +01:00
Erik Thuning
a37323a796
Reformatted log line
2022-12-07 16:12:02 +01:00
Erik Thuning
f006df7149
Abstract methods now raise NotImplementedError; properly log errors in subprocesses
2022-12-07 14:06:17 +01:00
Erik Thuning
de94d89814
Logging each start of processing on a queue item
2022-12-07 11:12:18 +01:00
Erik Thuning
82eb9d110c
Added a deduplicating log handler for the stderr logger
2022-12-06 16:06:31 +01:00
Erik Thuning
b11f567903
Added logging to Distributor class
2022-12-06 15:14:42 +01:00
Erik Thuning
517a5a1e55
Logging handlers are now cleared on pipeline creation
2022-12-06 15:12:48 +01:00
Erik Thuning
feb1e1701a
Changed the course format returned by get_booking() to a dict including both course designation and semester
2022-12-06 14:52:39 +01:00
Erik Thuning
3c276ecde3
Added logging
2022-11-28 16:28:47 +01:00
Erik Thuning
288d2665bf
Flip-flopping on string quotes
2022-11-28 16:28:32 +01:00
Erik Thuning
a8ecc469dd
The superclass already has self.logger
2022-11-28 16:15:26 +01:00
Erik Thuning
c42e4cb72e
Added logging to notifier
2022-11-28 16:08:36 +01:00
Erik Thuning
ccead70ed3
Made string quotes consistent
2022-11-28 15:58:09 +01:00
Erik Thuning
bee9b78a8f
Added startup/shutdown logging to QueueThread
2022-11-28 15:54:59 +01:00
Erik Thuning
c9349ae30b
Added logging
2022-11-28 11:40:43 +01:00
Erik Thuning
905d7f2f01
Fixed various slop so tests pass
2022-10-31 14:16:04 +01:00
Erik Thuning
be6a7877d7
Refactored poster handling to always be done in PosterHandler.
...
Also improved docstrings and implemented removal of superseded
video and poster files.
2022-10-28 14:18:24 +02:00
Erik Thuning
dac19f6f7f
Added the option of multiple subtitle tracks
2022-10-28 11:20:47 +02:00
Erik Thuning
1957b59e85
The poster handler now generates posters for existing streams if
...
the job contains a falsy 'poster' value for a stream with
no 'video' key.
2022-10-24 16:54:48 +02:00
Erik Thuning
df64ccffb0
The exception shouldn't cause exceptions
2022-10-24 16:48:14 +02:00
Erik Thuning
6291b66c86
Capitalized all sections in config
...
Implemented HTTP notification
2022-10-24 16:47:24 +02:00
Erik Thuning
0b06690a38
* Completed ThumbnailHandler
...
* Simplified writing Package to json
* Collector now accepts Handler objects instead of name strings
* Refactored Handler._handle() and its invocation from _process():
- _handle() now returns apply_func
- boilerplate moved into Handler._process()
- Handlers can require other handlers to finish before them
2022-10-22 00:19:03 +02:00
Erik Thuning
eb9f0b7371
Renamed QueueThread._handle() to ._process()
...
Renamed Preprocessor._handle() to ._preprocess()
Consistency updates to all subclasses
2022-10-21 23:15:38 +02:00
Erik Thuning
c90ea5966f
Allow None in package for duration and creation
2022-10-21 23:12:31 +02:00
Erik Thuning
3716d3dc0b
Revert "Forgot to remove an import"
...
This reverts commit 5734d954a6331791a963d21d08dd74aed1280829.
2022-10-21 16:34:59 +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
5734d954a6
Forgot to remove an import
2022-10-21 16:24:26 +02:00
Erik Thuning
a494322a08
Don't need fallbacks for package keys anymore
2022-10-21 15:31:28 +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
fc23dff9da
Package now guarantees existence of all valid top-level keys
2022-10-21 15:28:07 +02:00
Erik Thuning
20a26de102
splitext reutnrs more than one thing
2022-10-21 14:50:02 +02:00
Erik Thuning
a1af06fae8
Added thumbnail generation handler
2022-10-21 14:43:21 +02:00
Erik Thuning
ac1a1d9fbf
Tyop fixes
2022-10-21 14:40:27 +02:00
Erik Thuning
f1368e3398
Moved creation of Daisy object closer to consumers
2022-10-21 11:28:33 +02:00
Erik Thuning
d3090d7dc4
Added ldap utility class
2022-10-21 11:15:17 +02:00
Erik Thuning
0f3da0a717
Async jobs now have a centralized function in Handler.
2022-10-21 10:59:58 +02:00
Erik Thuning
a9596f71cb
Catching ffprobe errors
2022-10-20 23:41:13 +02:00
Erik Thuning
9e51321e6a
Implemented poster handler
2022-10-20 22:35:16 +02:00
Erik Thuning
9cc0efd433
Forgot to add the poster to the metadata
2022-10-20 22:34:50 +02:00
Erik Thuning
b15045eb13
Removed unnecessary import
2022-10-20 21:08:07 +02:00
Erik Thuning
58a7362820
Activated slides handler
2022-10-20 17:01:17 +02:00