We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 398730b commit cd209b5Copy full SHA for cd209b5
mapreader/download/iiif_downloader.py
@@ -166,7 +166,8 @@ def save_georeferenced_map(
166
167
# Get filename
168
# host, prefix, identifier
169
- fname = ".".join(annot.id.removeprefix("https://").split("/")[2:])
+ id = annot.resource["service"]["id"] if annot.id is None else annot.id
170
+ fname = ".".join(id.removeprefix("https://").split("/")[2:])
171
172
if not os.path.exists(path_save):
173
os.makedirs(path_save, exist_ok=True)
0 commit comments