v3.0.0: Docker-Migration mit CI-Pipeline und neuen Features
- Gitea CI-Workflows fuer Multi-Arch Docker Builds (amd64 + arm64) - Beschreibungsfeld und mehrtaegige Zeitplanung fuer Jobs - Benachrichtigungen auf Deutsch - docker-compose nutzt Registry-Image Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 4.6
parent
9fa589789e
commit
b446ce9b3e
+10
-4
@@ -98,6 +98,9 @@ class RecordingManager:
|
||||
ntfy_enabled = False
|
||||
if rec_id and rec_id in self._rec_options:
|
||||
ntfy_enabled = self._rec_options[rec_id].get("ntfy_enabled", False)
|
||||
desc = self._rec_options[rec_id].get("description", "")
|
||||
if desc:
|
||||
message = f"{message}\n{desc}"
|
||||
self._get_ntfy().notify(event, title, message, job_ntfy_enabled=ntfy_enabled, priority=priority)
|
||||
|
||||
def _log(self, level: str, message: str, job_name: str = None):
|
||||
@@ -120,6 +123,7 @@ class RecordingManager:
|
||||
extra_ffmpeg_args: str = "",
|
||||
segment_duration: Optional[int] = None,
|
||||
is_scheduled: bool = False,
|
||||
description: str = "",
|
||||
metadata_monitor_enabled: bool = False,
|
||||
metadata_pattern: str = "",
|
||||
metadata_grace_period: int = 300,
|
||||
@@ -186,10 +190,11 @@ class RecordingManager:
|
||||
"plik_enabled": plik_enabled,
|
||||
"delete_after_upload": delete_after_upload,
|
||||
"segment_mode": segment_mode,
|
||||
"description": description,
|
||||
}
|
||||
|
||||
self._log("INFO", f"Aufnahme gestartet: {name} [{stream_type}]", name)
|
||||
self._notify("start", "Aufnahme gestartet", f"{name} [{stream_type}]", rec_id)
|
||||
self._log("INFO", f"Aufnahme gestartet: {name}", name)
|
||||
self._notify("start", "Aufnahme gestartet", name, rec_id)
|
||||
|
||||
if metadata_monitor_enabled and metadata_pattern:
|
||||
self._get_metadata_monitor().start_monitoring(
|
||||
@@ -251,9 +256,10 @@ class RecordingManager:
|
||||
|
||||
if stop_event.is_set() or retcode == 0:
|
||||
status = "completed" if retcode == 0 else "stopped"
|
||||
status_de = "abgeschlossen" if status == "completed" else "gestoppt"
|
||||
self._update_recording(rec_id, status=status)
|
||||
self._log("INFO", f"Aufnahme {status}: {job_name}", job_name)
|
||||
self._notify("stop", f"Aufnahme {status}", job_name, rec_id)
|
||||
self._log("INFO", f"Aufnahme {status_de}: {job_name}", job_name)
|
||||
self._notify("stop", f"Aufnahme {status_de}", job_name, rec_id)
|
||||
self._handle_post_recording(rec_id, output_dir, output_file, job_name, segment_mode)
|
||||
return
|
||||
|
||||
|
||||
Reference in New Issue
Block a user