Update app/ytdl.py

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
Shiva Sai K 2026-01-04 19:44:44 +05:30 committed by GitHub
parent 5529a7110f
commit 00e26fa6ac
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -368,6 +368,7 @@ class DownloadQueue:
download.info.percent = None download.info.percent = None
download.info.speed = None download.info.speed = None
download.info.eta = None download.info.eta = None
asyncio.create_task(self.notifier.updated(download.info))
# Create a new download with the same info # Create a new download with the same info
dldirectory, _ = self.__calc_download_path(download.info.quality, download.info.format, download.info.folder) dldirectory, _ = self.__calc_download_path(download.info.quality, download.info.format, download.info.folder)
output = self.config.OUTPUT_TEMPLATE if len(download.info.custom_name_prefix) == 0 else f'{download.info.custom_name_prefix}.{self.config.OUTPUT_TEMPLATE}' output = self.config.OUTPUT_TEMPLATE if len(download.info.custom_name_prefix) == 0 else f'{download.info.custom_name_prefix}.{self.config.OUTPUT_TEMPLATE}'