Added indicator in the WebUI for when post-processing are running.
This commit is contained in:
parent
bce84163f7
commit
8dd7c7de1e
2 changed files with 10 additions and 0 deletions
|
|
@ -100,6 +100,8 @@ class Download:
|
|||
|
||||
def _postprocessor_hook(self, data: dict):
|
||||
if "MoveFiles" != data.get("postprocessor") or "finished" != data.get("status"):
|
||||
dataDict = {k: v for k, v in data.items() if k in self._ytdlp_fields}
|
||||
self.status_queue.put({"id": self.id, **dataDict, "status": "postprocessing"})
|
||||
return
|
||||
|
||||
if self.debug:
|
||||
|
|
|
|||
|
|
@ -191,6 +191,10 @@ const setIcon = item => {
|
|||
return 'fa-solid fa-circle-check';
|
||||
}
|
||||
|
||||
if ('postprocessing' === item.status) {
|
||||
return 'fa-solid fa-cog fa-spin';
|
||||
}
|
||||
|
||||
if (null === item.status && true === config.paused) {
|
||||
return 'fa-solid fa-pause-circle';
|
||||
}
|
||||
|
|
@ -239,6 +243,10 @@ const updateProgress = (item) => {
|
|||
return 'Paused';
|
||||
}
|
||||
|
||||
if ('postprocessing' === item.status) {
|
||||
return 'Post-processors are running.';
|
||||
}
|
||||
|
||||
if ('preparing' === item.status) {
|
||||
return 'Preparing';
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue