Fix regex for krpano numeric indices
This commit is contained in:
parent
af314b7511
commit
e4f2a2a13b
1 changed files with 2 additions and 3 deletions
|
@ -130,15 +130,14 @@ def krpano_make_tiles(url):
|
|||
try:
|
||||
if re.search(r"\_[frblud].jpg", parts[-1]):
|
||||
return krpano_export_simple(url)
|
||||
elif re.search(r"\d.jpg", parts[-1]):
|
||||
elif re.search(r"^\d.jpg", parts[-1]):
|
||||
return krpano_export_simple(url, "012345")
|
||||
else:
|
||||
schema = krpano_normalize(url)
|
||||
images = krpano_export(schema)
|
||||
return multistitch(images)
|
||||
|
||||
except:
|
||||
raise
|
||||
except Exception as e:
|
||||
raise ValueError("%s does not seem to be a valid krpano URL." % url)
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue