fix problem with negative (South) Latitude

This commit is contained in:
zserg 2015-12-25 12:05:38 +03:00 committed by Jaisen Mathai
parent d089b05cf0
commit 75e1f6180c
1 changed files with 1 additions and 1 deletions

View File

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