Skip to content

Commit

Permalink
fix: title is not mandatory in asset
Browse files Browse the repository at this point in the history
  • Loading branch information
alambare committed Jun 3, 2024
1 parent 652673c commit c70ba44
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions eodag/rest/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -315,11 +315,11 @@ async def download_stac_item(
_dc_qs = unquote_plus(unquote_plus(qp["_dc_qs"][0]))
parts = origin["href"].split("?")
origin["href"] = f"{parts[0]}?{_dc_qs}"
product.location = product.remote_location = origin["href"]
product.location = product.remote_location = origin["href"]
product.assets[k] = {
"product": product,
"href": origin["href"] if origin else v["href"],
"title": v["title"],
"title": v.get("title"),
}

downloader = eodag_api._plugins_manager.get_download_plugin(product)
Expand Down

0 comments on commit c70ba44

Please sign in to comment.