Added event for item in archive
This commit is contained in:
parent
bdbc2f5b7a
commit
3f338dba20
1 changed files with 1 additions and 0 deletions
|
|
@ -650,6 +650,7 @@ class DownloadQueue(metaclass=Singleton):
|
||||||
if downloaded is True and id_dict:
|
if downloaded is True and id_dict:
|
||||||
message = f"'{id_dict.get('id')}': The URL '{item.url}' is already downloaded and recorded in archive."
|
message = f"'{id_dict.get('id')}': The URL '{item.url}' is already downloaded and recorded in archive."
|
||||||
LOG.error(message)
|
LOG.error(message)
|
||||||
|
await self._notify.emit(Events.LOG_INFO, title="Already Downloaded", message=message)
|
||||||
return {"status": "error", "msg": message}
|
return {"status": "error", "msg": message}
|
||||||
|
|
||||||
started: float = time.perf_counter()
|
started: float = time.perf_counter()
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue