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
787fb605e1
Subtitle replacement and deletion now works as expected
2023-06-15 10:59:54 +02:00
Erik Thuning
98595461a0
Fixed existing packages not getting loaded correctly due to a bad assumption about package base paths
2023-05-24 14:46:54 +02:00
Erik Thuning
a0996a9bba
The distributor thread will no longer crash if there is more than one pending job for a single package.
2023-05-16 11:25:02 +02:00
Erik Thuning
480846b617
Refactored the temporary copy function and moved creation of the base directory for a package
2023-04-14 15:01:09 +02:00
Erik Thuning
278fe30b02
Refactored subtitles handling to include generation via whisper.
2023-03-27 16:36:27 +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
dac19f6f7f
Added the option of multiple subtitle tracks
2022-10-28 11:20:47 +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
fc23dff9da
Package now guarantees existence of all valid top-level keys
2022-10-21 15:28:07 +02:00
Erik Thuning
a9596f71cb
Catching ffprobe errors
2022-10-20 23:41:13 +02:00
Erik Thuning
f772aa5033
Missing import
2022-10-20 17:01:04 +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
e00bbdab60
Forgot to remove an import
2022-10-19 16:23:04 +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
3001c9fb7a
streams key now always exists in a package
2022-10-18 14:23:29 +02:00
Erik Thuning
0c1093f72b
Formatting
2022-10-18 14:16:09 +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
Erik Thuning
e6e0416eaf
Validation function almost works
2022-09-23 13:26:15 +02:00
Erik Thuning
b23597e75a
Getting somewhere
2022-09-23 09:49:39 +02:00