(self, download)
| 969 | asyncio.create_task(self.__start_download(download)) |
| 970 | |
| 971 | async def __start_download(self, download): |
| 972 | if download.canceled: |
| 973 | log.info(f"Download {download.info.title} was canceled, skipping start.") |
| 974 | return |
| 975 | async with self.semaphore: |
| 976 | if download.canceled: |
| 977 | log.info(f"Download {download.info.title} was canceled, skipping start.") |
| 978 | return |
| 979 | await download.start(self.notifier) |
| 980 | self._post_download_cleanup(download) |
| 981 | |
| 982 | def _post_download_cleanup(self, download): |
| 983 | if download.info.status != 'finished': |
no test coverage detected