diff --git a/DrissionPage/session_page.py b/DrissionPage/session_page.py index 182ea4a..2647173 100644 --- a/DrissionPage/session_page.py +++ b/DrissionPage/session_page.py @@ -218,9 +218,7 @@ class SessionPage(BasePage): @property def download(self) -> DownloadKit: if self._download_kit is None: - self._download_kit = DownloadKit(session=self.session, timeout=self.timeout) - self._download_kit.retry = self.retry_times - self._download_kit.interval = self.retry_interval + self._download_kit = DownloadKit(session=self, timeout=self.timeout) return self._download_kit diff --git a/setup.py b/setup.py index 81734a5..781bccb 100644 --- a/setup.py +++ b/setup.py @@ -6,7 +6,7 @@ with open("README.md", "r", encoding='utf-8') as fh: setup( name="DrissionPage", - version="2.5.7", + version="2.5.8", author="g1879", author_email="g1879@qq.com", description="A module that integrates selenium and requests session, encapsulates common page operations.",