Add new features

This commit is contained in:
2026-04-18 17:55:52 +03:00
parent 992923bdc4
commit 56fd3a10c7
7 changed files with 1486 additions and 153 deletions

View File

@@ -404,6 +404,10 @@ class ReadTrackTask(task.Task):
self.stop()
return
def abort(self):
if getattr(self, "_popen", None) is not None and self._popen.poll() is None:
self._popen.terminate()
class ReadVerifyTrackTask(task.MultiSeparateTask):
"""
@@ -566,6 +570,15 @@ class ReadVerifyTrackTask(task.MultiSeparateTask):
task.MultiSeparateTask.stop(self)
def abort(self):
if 0 < self._task <= len(self.tasks):
current_task = self.tasks[self._task - 1]
abort = getattr(current_task, "abort", None)
if callable(abort):
abort()
else:
current_task.stop()
_VERSION_RE = re.compile(
"^cdparanoia (?P<version>.+) release (?P<release>.+)")