diff --git a/cyberdrop_dl/__init__.py b/cyberdrop_dl/__init__.py index bc23f4cfa..e654d1af1 100644 --- a/cyberdrop_dl/__init__.py +++ b/cyberdrop_dl/__init__.py @@ -1 +1 @@ -__version__ = "5.2.4" \ No newline at end of file +__version__ = "5.2.5" \ No newline at end of file diff --git a/cyberdrop_dl/downloader/downloader.py b/cyberdrop_dl/downloader/downloader.py index 6e45ded5f..e2833c846 100644 --- a/cyberdrop_dl/downloader/downloader.py +++ b/cyberdrop_dl/downloader/downloader.py @@ -219,8 +219,9 @@ async def mark_completed(self, media_item: MediaItem) -> None: async def set_additional_headers(self) -> None: """Sets additional headers for the download session""" - if self.manager.config_manager.authentication_data['PixelDrain']['pixeldrain_api_key']: - self._additional_headers["Authorization"] = await self.manager.download_manager.basic_auth("Cyberdrop-DL", self.manager.config_manager.authentication_data['PixelDrain']['pixeldrain_api_key']) + if self.domain == "pixeldrain": + if self.manager.config_manager.authentication_data['PixelDrain']['pixeldrain_api_key']: + self._additional_headers["Authorization"] = await self.manager.download_manager.basic_auth("Cyberdrop-DL", self.manager.config_manager.authentication_data['PixelDrain']['pixeldrain_api_key']) async def get_final_file_info(self, complete_file: Path, partial_file: Path, media_item: MediaItem) -> tuple[Path, Path, bool, bool]: diff --git a/pyproject.toml b/pyproject.toml index fed2ec0aa..9efd0bcd9 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "cyberdrop-dl" -version = "5.2.4" +version = "5.2.5" description = "Bulk downloader for multiple file hosts" authors = ["Jules Winnfield "] readme = "README.md"