Skip to content

Commit

Permalink
fix(server): single asset download with ignore_assets plugin setting (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
anesson-cs authored Jun 11, 2024
1 parent 203665d commit fe356ec
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion eodag/plugins/download/http.py
Original file line number Diff line number Diff line change
Expand Up @@ -777,7 +777,10 @@ def _stream_download_dict(
raise MisconfiguredError(f"Incompatible auth plugin: {type(auth)}")

# download assets if exist instead of remote_location
if len(product.assets) > 0 and not getattr(self.config, "ignore_assets", False):
if len(product.assets) > 0 and (
not getattr(self.config, "ignore_assets", False)
or kwargs.get("asset") is not None
):
try:
assets_values = product.assets.get_values(kwargs.get("asset", None))
chunks_tuples = self._stream_download_assets(
Expand Down

0 comments on commit fe356ec

Please sign in to comment.