mirror of
https://github.com/lrnselfreliance/wrolpi.git
synced 2026-12-01 04:16:24 -05:00
Add an in-memory FIFO Job queue (wrolpi/jobs.py): functions register by name, callers enqueue by name with JSON kwargs, and the perpetual-tasks owner runs them one at a time. Logging emitted inside a Job and the output of its subprocesses are captured into a per-Job log; Jobs report progress and can be cancelled (a running Job's subprocess is killed). Jobs are not persisted; an API restart forgets them. Add a transcode Job and POST /api/videos/<id>/transcode. ffmpeg reports progress via -progress pipe:1. The existing FileGroup is pointed at the new file before the refresh so tags and history survive a container change. Replace the video page Refresh button with an Edit dropdown (Refresh, Transcode). The Transcode modal pre-fills from the preferred codecs in the Videos settings and shows the Job's progress, log tail and Cancel. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| __init__.py | ||
| test_api.py | ||
| test_audio_modeling.py | ||
| test_channel_directory_scenarios.py | ||
| test_channel_refresh_events.py | ||
| test_channel_refresh_external_files.py | ||
| test_channels_config.py | ||
| test_common.py | ||
| test_cookies.py | ||
| test_downloader.py | ||
| test_lib.py | ||
| test_models.py | ||
| test_transcode.py | ||
| test_transcode_job.py | ||
| test_video.py | ||
| test_video_modeler_loop.py | ||
| test_video_url_resolver.py | ||