escapes gif images from komoot import
This commit is contained in:
@@ -374,6 +374,9 @@ func fetchRoutePhotos(tour *DetailedKomootTour) ([]*filesystem.File, error) {
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
if strings.HasSuffix(photo.Name, ".gif") {
|
||||||
|
continue
|
||||||
|
}
|
||||||
photos[i] = photo
|
photos[i] = photo
|
||||||
|
|
||||||
//TODO: komoot photos can have location data. Maybe we should create a waypoint for those photos?
|
//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 {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
if strings.HasSuffix(photo.Name, ".gif") {
|
||||||
|
continue
|
||||||
|
}
|
||||||
photos[i] = photo
|
photos[i] = photo
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user