Skip to content

Commit

Permalink
Merge pull request #6 from developmentseed/fix/alternate-assets-href
Browse files Browse the repository at this point in the history
Local alternate hrefs
  • Loading branch information
vincentsarago authored Apr 2, 2024
2 parents 6524107 + 4b3df7e commit d494b9b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion titiler/stacapi/reader.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ def _get_asset_info(self, asset: str) -> AssetInfo:

url = asset_info.get_absolute_href() or asset_info.href
if alternate := stac_config.alternate_url:
url = asset_info[alternate]["href"]
url = asset_info.to_dict()["alternate"][alternate]["href"]

info = AssetInfo(
url=url,
Expand Down

0 comments on commit d494b9b

Please sign in to comment.