mirror of
https://github.com/alexta69/metube.git
synced 2026-03-03 02:47:02 +00:00
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))
|
||||
|
||||
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))
|
||||
|
||||
async def completed(self, dl):
|
||||
|
||||
@@ -187,7 +187,7 @@ class Download:
|
||||
self.info.percent = status['downloaded_bytes'] / total * 100
|
||||
self.info.speed = status.get('speed')
|
||||
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)
|
||||
|
||||
class PersistentQueue:
|
||||
|
||||
Reference in New Issue
Block a user