From a1296ebacd5aa008601acf4e818e2554c1a843b0 Mon Sep 17 00:00:00 2001 From: Christian Beutel <> Date: Mon, 14 Apr 2025 14:09:32 +0200 Subject: [PATCH] escapes gif images from komoot import --- db/integrations/komoot/komoot.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/db/integrations/komoot/komoot.go b/db/integrations/komoot/komoot.go index 57be564f..ca4767af 100644 --- a/db/integrations/komoot/komoot.go +++ b/db/integrations/komoot/komoot.go @@ -374,6 +374,9 @@ func fetchRoutePhotos(tour *DetailedKomootTour) ([]*filesystem.File, error) { if err != nil { return nil, err } + if strings.HasSuffix(photo.Name, ".gif") { + continue + } photos[i] = photo //TODO: komoot photos can have location data. Maybe we should create a waypoint for those photos? @@ -391,6 +394,9 @@ func fetchWaypointPhotos(wp Item) ([]*filesystem.File, error) { if err != nil { return nil, err } + if strings.HasSuffix(photo.Name, ".gif") { + continue + } photos[i] = photo }