Suppress download progress update
...by sending them to debug
This commit is contained in:
@@ -140,7 +140,7 @@ class Notifier(DownloadQueueNotifier):
|
|||||||
await sio.emit('added', serializer.encode(dl))
|
await sio.emit('added', serializer.encode(dl))
|
||||||
|
|
||||||
async def updated(self, dl):
|
async def updated(self, dl):
|
||||||
log.info(f"Notifier: Download updated - {dl.title}")
|
log.debug(f"Notifier: Download updated - {dl.title}")
|
||||||
await sio.emit('updated', serializer.encode(dl))
|
await sio.emit('updated', serializer.encode(dl))
|
||||||
|
|
||||||
async def completed(self, dl):
|
async def completed(self, dl):
|
||||||
|
|||||||
@@ -187,7 +187,7 @@ class Download:
|
|||||||
self.info.percent = status['downloaded_bytes'] / total * 100
|
self.info.percent = status['downloaded_bytes'] / total * 100
|
||||||
self.info.speed = status.get('speed')
|
self.info.speed = status.get('speed')
|
||||||
self.info.eta = status.get('eta')
|
self.info.eta = status.get('eta')
|
||||||
log.info(f"Updating status for {self.info.title}: {status}")
|
log.debug(f"Updating status for {self.info.title}: {status}")
|
||||||
await self.notifier.updated(self.info)
|
await self.notifier.updated(self.info)
|
||||||
|
|
||||||
class PersistentQueue:
|
class PersistentQueue:
|
||||||
|
|||||||
Reference in New Issue
Block a user