From 75e1f6180cd8010518d961376da9d5ecfe562bd6 Mon Sep 17 00:00:00 2001 From: zserg Date: Fri, 25 Dec 2015 12:05:38 +0300 Subject: [PATCH] fix problem with negative (South) Latitude --- elodie/media/photo.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/elodie/media/photo.py b/elodie/media/photo.py index e89d440..8217905 100644 --- a/elodie/media/photo.py +++ b/elodie/media/photo.py @@ -79,7 +79,7 @@ class Photo(Media): londir = -1 coords = exif[key].value - if(key == 'latitude'): + if(type == 'latitude'): return float(str(LatLon.Latitude(degree=coords[0], minute=coords[1], second=coords[2]))) * latdir else: return float(str(LatLon.Longitude(degree=coords[0], minute=coords[1], second=coords[2]))) * londir