We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent aa7c5fd commit 398730bCopy full SHA for 398730b
mapreader/download/iiif_downloader.py
@@ -320,7 +320,8 @@ def save_map(
320
for annot in tqdm(iiif_obj.collect_annotations()):
321
# Get filename
322
# host, prefix, identifier
323
- fname = ".".join(annot.id.removeprefix("https://").split("/")[2:])
+ id = annot.resource["service"]["id"] if annot.id is None else annot.id
324
+ fname = ".".join(id.removeprefix("https://").split("/")[2:])
325
326
if not os.path.exists(path_save):
327
os.makedirs(path_save, exist_ok=True)
0 commit comments