Erik Thuning
f455f95ce0
Stop seeking into the video for poster generation, just use the first frame.
...
This guarantees that a poster can be generated for any valid stream instead of
breaking on extremely short streams (<1s).
2024-12-06 15:27:34 +01: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
2ce11af099
Formatting
2023-11-23 15:43:38 +01:00
Erik Thuning
b81bd64ffd
Made it possible to have more than one handler of the same type
...
by making the handler's queue an init parameter.
2023-11-23 15:41:42 +01:00
Erik Thuning
0e08ae3f12
Uploaded files in subdirectories are now handled properly
2023-04-14 15:52:14 +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
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
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
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
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
9e51321e6a
Implemented poster handler
2022-10-20 22:35:16 +02:00