add resume support, metadata paths, LRCLIB order and overall progress
- store source track path in metadata.json and validate it when skipping ready files - add skip_existing/resume_partial options to config and GUI - identify lyrics via embedded text, Shazam, then one LRCLIB author search - keep post-ASR LRCLIB text matching and allow cancelling safely - recover from CUDA OOM and free VRAM between batch stages - add overall completed/total file progress bar to GUI and pipelines
This commit is contained in:
@@ -10,7 +10,8 @@ from core.config import PipelineConfig
|
||||
|
||||
class PipelineWorker(QThread):
|
||||
log = Signal(str)
|
||||
progress = Signal(int, int, str) # done, total, stage
|
||||
progress = Signal(str, int, int) # stage, current, total_for_stage
|
||||
overall_progress = Signal(int, int) # completed_files, total_files
|
||||
finished_ok = Signal(list)
|
||||
failed = Signal(str)
|
||||
|
||||
@@ -35,8 +36,9 @@ class PipelineWorker(QThread):
|
||||
results = runner(
|
||||
self._config,
|
||||
log=self.log.emit,
|
||||
on_progress=lambda d, t, s: self.progress.emit(d, t, s),
|
||||
on_progress=lambda s, d, t: self.progress.emit(s, d, t),
|
||||
stop_event=self._stop_event,
|
||||
on_overall_progress=lambda d, t: self.overall_progress.emit(d, t),
|
||||
)
|
||||
self.finished_ok.emit(results)
|
||||
except Exception as exc: # noqa: BLE001
|
||||
|
||||
Reference in New Issue
Block a user