Make pithcat to be able to work with 'pithosmap://' URLS that contain
the name of an Archipelago map.
size, hashmap = backend.get_object_hashmap(account, account, container,
object)
elif type(url) is HashmapURL:
- hashmap = [hexlify(x)
- for x in backend.store.map_get(unhexlify(url.hash))]
size = int(url.size)
+ try:
+ hashmap = [hexlify(x)
+ for x in backend.store.map_get(unhexlify(url.hash))]
+ except TypeError:
+ fullhash = "archip:%s" % url.hash
+ hashmap = backend.store.map_get_archipelago(fullhash, size)
else:
raise Exception("Invalid URL")