update delete message.
This commit is contained in:
parent
cee6a86cb0
commit
dbbd23526b
1 changed files with 2 additions and 1 deletions
|
|
@ -237,12 +237,13 @@ class DownloadQueue:
|
||||||
continue
|
continue
|
||||||
|
|
||||||
item = self.queue.get(key=id)
|
item = self.queue.get(key=id)
|
||||||
log.notice(f'deleting {id=} {item.info.title=}')
|
|
||||||
|
|
||||||
if self.queue.get(id).started():
|
if self.queue.get(id).started():
|
||||||
|
log.notice(f'Canceling {id=} {item.info.title=}')
|
||||||
self.queue.get(id).cancel()
|
self.queue.get(id).cancel()
|
||||||
else:
|
else:
|
||||||
self.queue.delete(id)
|
self.queue.delete(id)
|
||||||
|
log.notice(f'deleting {id=} {item.info.title=}')
|
||||||
await self.notifier.canceled(id)
|
await self.notifier.canceled(id)
|
||||||
|
|
||||||
return {'status': 'ok'}
|
return {'status': 'ok'}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue