Change image processing to create new .gps_*.
The processing should also create .gps_* instead of the old ['gps']['x']. To ease forward porting, use the new media.media_data_init() to set the gps data in the media.
This commit is contained in:
parent
e0b2b245fe
commit
ea200c32ac
@ -119,7 +119,11 @@ def process_image(entry):
|
|||||||
'clean': clean_exif(exif_tags)}
|
'clean': clean_exif(exif_tags)}
|
||||||
media_data['exif']['useful'] = get_useful(
|
media_data['exif']['useful'] = get_useful(
|
||||||
media_data['exif']['clean'])
|
media_data['exif']['clean'])
|
||||||
media_data['gps'] = gps_data
|
|
||||||
|
if len(gps_data):
|
||||||
|
for key in list(gps_data.keys()):
|
||||||
|
gps_data['gps_' + key] = gps_data.pop(key)
|
||||||
|
entry.media_data_init(**gps_data)
|
||||||
|
|
||||||
# clean up workbench
|
# clean up workbench
|
||||||
workbench.destroy_self()
|
workbench.destroy_self()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user