diff options
author | Olivier Tilloy <olivier@tilloy.net> | 2008-01-27 18:31:51 +0100 |
---|---|---|
committer | Olivier Tilloy <olivier@tilloy.net> | 2008-01-27 18:31:51 +0100 |
commit | cbe76aa56cdb2ad36678f4e6a88c8b97ca0fadb2 (patch) | |
tree | 8b3449db8b4eed32141e5bc90b568807e7f03bbf /src | |
parent | 3c3c02d9158af880c3eb991cadab4a4aa83d76ab (diff) | |
download | pyexiv2-cbe76aa56cdb2ad36678f4e6a88c8b97ca0fadb2.tar.gz |
Fixed a bug that prevented from setting an EXIF tag with multiple values.
Diffstat (limited to 'src')
-rw-r--r-- | src/pyexiv2.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/pyexiv2.py b/src/pyexiv2.py index 89ef3b8..8f4af39 100644 --- a/src/pyexiv2.py +++ b/src/pyexiv2.py @@ -404,8 +404,8 @@ class Image(libpyexiv2.Image): strVal = str(value) elif valueType == datetime.datetime: strVal = value.strftime('%Y:%m:%d %H:%M:%S') - elif valueType == tuple: - strVal = '%s/%s' % (str(value[0]), str(value[1])) + elif valueType == list or valueType == tuple: + strVal = ' '.join([str(x) for x in value]) else: # Value must already be a string. # Warning: no distinction is possible between values that really are |