fix
This commit is contained in:
parent
dbbd23526b
commit
38c71d2fa6
1 changed files with 3 additions and 3 deletions
|
|
@ -239,11 +239,11 @@ class DownloadQueue:
|
||||||
item = self.queue.get(key=id)
|
item = self.queue.get(key=id)
|
||||||
|
|
||||||
if self.queue.get(id).started():
|
if self.queue.get(id).started():
|
||||||
log.notice(f'Canceling {id=} {item.info.title=}')
|
log.info(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=}')
|
log.info(f'deleting {id=} {item.info.title=}')
|
||||||
await self.notifier.canceled(id)
|
await self.notifier.canceled(id)
|
||||||
|
|
||||||
return {'status': 'ok'}
|
return {'status': 'ok'}
|
||||||
|
|
@ -254,7 +254,7 @@ class DownloadQueue:
|
||||||
log.warn(f'requested delete for non-existent download {id}')
|
log.warn(f'requested delete for non-existent download {id}')
|
||||||
continue
|
continue
|
||||||
item = self.done.get(key=id)
|
item = self.done.get(key=id)
|
||||||
log.notice(f'deleting {id=} {item.info.title=}')
|
log.info(f'deleting {id=} {item.info.title=}')
|
||||||
self.done.delete(id)
|
self.done.delete(id)
|
||||||
await self.notifier.cleared(id)
|
await self.notifier.cleared(id)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue