Use preview if outline is not available

This commit is contained in:
SemvdH
2025-11-16 16:32:01 +01:00
parent 1f9f51396e
commit c815f754fe
2 changed files with 4 additions and 3 deletions

View File

@@ -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