4 Commits

Author SHA1 Message Date
Alex
90299b227e Merge pull request #855 from alemonmk/suppress-dl-progress-logs
Suppress download progress update in logs
2025-12-26 17:43:36 +02:00
Alex
6445517751 Merge pull request #848 from alemonmk/fix-crlf
Convert files to LF line ending
2025-12-26 14:21:17 +02:00
Lemon Lam
dae710a339 Suppress download progress update
...by sending them to debug
2025-12-26 19:42:09 +08:00
Lemon Lam
318f4f9f21 Convert to LF 2025-12-26 19:30:26 +08:00
5 changed files with 1444 additions and 1444 deletions

View File

@@ -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):

View File

@@ -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: