Skip to content

Commit

Permalink
fix: download issue with ext api plugins
Browse files Browse the repository at this point in the history
  • Loading branch information
sbrunato committed Jun 28, 2023
1 parent 20d1fad commit a8f3e4f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions eodag/api/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
provider_config_init,
)
from eodag.plugins.download.base import DEFAULT_DOWNLOAD_TIMEOUT, DEFAULT_DOWNLOAD_WAIT
from eodag.plugins.download.s3rest import S3RestDownload
from eodag.plugins.download.http import HTTPDownload
from eodag.plugins.manager import PluginManager
from eodag.utils import (
GENERIC_PRODUCT_TYPE,
Expand Down Expand Up @@ -1845,7 +1845,7 @@ def download_stream(self, product, progress_callback=None, **kwargs):
a["href"] for a in getattr(product, "assets", {}).values() if "href" in a
]

if not assets_urls and not isinstance(product.downloader, S3RestDownload):
if not assets_urls and isinstance(product.downloader, HTTPDownload):
self.providers_config[product.provider].download.extract = False
return product.download_zip(progress_callback, **kwargs)
elif assets_urls:
Expand Down

0 comments on commit a8f3e4f

Please sign in to comment.