diff --git a/docs/source/conf.py b/docs/source/conf.py index 2f7b681..6ef5c6c 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -15,8 +15,8 @@ copyright = "2023, ECMWF" author = "ECMWF" -release = "2.14" -version = "2.14" +release = "2.15" +version = "2.15" # -- General configuration diff --git a/hda/api.py b/hda/api.py index 7c71233..4835f4a 100644 --- a/hda/api.py +++ b/hda/api.py @@ -84,7 +84,13 @@ def get_filename(response, fallback): if cd is None: return fallback - return cd[cd.find("filename=") + len("filename=") :] + filename = cd[cd.find("filename=") + len("filename=") :] + if filename.startswith('"'): + filename = filename[1:] + if filename.endswith('"'): + filename = filename[:-1] + + return filename class HDAError(Exception): @@ -262,7 +268,6 @@ def __getitem__(self, index): def _download(self, result, download_dir: str = "."): logger.debug(result) - self.client.accept_tac(self.dataset) query = { diff --git a/setup.py b/setup.py index 89b323e..8106739 100644 --- a/setup.py +++ b/setup.py @@ -30,7 +30,7 @@ def read(fname): return io.open(file_path, encoding="utf-8").read() -version = "2.14" +version = "2.15" setuptools.setup( name="hda",