Use preview if outline is not available
This commit is contained in:
@@ -38,6 +38,9 @@ class Handler(BaseHTTPRequestHandler):
|
||||
img_path = get_preview_image(track, config)
|
||||
elif (img_type == "outline"):
|
||||
img_path = get_outline_image(track, config)
|
||||
if img_path == "":
|
||||
|
||||
img_path = get_preview_image(track, config)
|
||||
else:
|
||||
self.send_error(404)
|
||||
return True
|
||||
|
||||
Reference in New Issue
Block a user