escapes gif images from komoot import

This commit is contained in:
Christian Beutel
2025-04-14 14:09:32 +02:00
parent 0581d74043
commit a1296ebacd

View File

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