def load_exif(album):
if not hasattr(album.gallery, "<STR_LIT>"):<EOL><INDENT>_restore_cache(album.gallery)<EOL><DEDENT>cache = album.gallery.exifCache<EOL>for media in album.medias:<EOL><INDENT>if media.type == "<STR_LIT:image>":<EOL><INDENT>key = os.path.join(media.path, media.filename)<EOL>if key in cache:<EOL><INDENT>media.exif = cache[key]<EOL><DEDENT><DEDENT><DEDENT>
Loads the exif data of all images in an album from cache