From 6d02067406b42b1b4c600530e5f305ecd1f8dde3 Mon Sep 17 00:00:00 2001 From: "Rob G. Healey" Date: Sun, 6 Mar 2011 01:21:54 +0000 Subject: [PATCH] Fixed a problem with GPS coordinates handling svn: r16764 --- src/plugins/gramplet/MediaMetadata.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/plugins/gramplet/MediaMetadata.py b/src/plugins/gramplet/MediaMetadata.py index 7bb2603f7..382281cce 100644 --- a/src/plugins/gramplet/MediaMetadata.py +++ b/src/plugins/gramplet/MediaMetadata.py @@ -462,6 +462,9 @@ def rational_to_dms(rational_coords): rm, rest = rm.split("/") rs, rest = rs.split("/") + if len(rest) > 1: + rs = str( float( int(rs) / int(rest) ) ) + return rd, rm, rs #------------------------------------------------