add event warning about adding url saved to archive
This commit is contained in:
parent
9ba7b34803
commit
62703f3cb7
1 changed files with 1 additions and 0 deletions
|
|
@ -416,6 +416,7 @@ class DownloadQueue(metaclass=Singleton):
|
||||||
if downloaded is True and id_dict:
|
if downloaded is True and id_dict:
|
||||||
message = f"This url with ID '{id_dict.get('id')}' has been downloaded already and recorded in archive."
|
message = f"This url with ID '{id_dict.get('id')}' has been downloaded already and recorded in archive."
|
||||||
LOG.info(message)
|
LOG.info(message)
|
||||||
|
await self._notify.emit(Events.LOG_WARNING, data=event_warning(message))
|
||||||
return {"status": "error", "msg": message}
|
return {"status": "error", "msg": message}
|
||||||
|
|
||||||
started = time.perf_counter()
|
started = time.perf_counter()
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue