def albumart_metadata(release, common_tags):
 (date, year) = _date_year(release)
 artist = release['ArtistName']
 album = release['AlbumTitle']
 override_values = {Vars.ARTIST: artist, Vars.ALBUM: album, Vars.YEAR: year, Vars.DATE: date, Vars.ARTIST_LOWER: _lower(artist), Vars.ALBUM_LOWER: _lower(album)}
 res = MetadataDict(common_tags)
 res.add_items(override_values.iteritems())
 return res

def albumart_metadata ( release , common_tags ) : ( date , year ) = _date_year ( release ) artist = release [ 'ArtistName' ] album = release [ 'AlbumTitle' ] override_values = { Vars . ARTIST : artist , Vars . ALBUM : album , Vars . YEAR : year , Vars . DATE : date , Vars . ARTIST_LOWER : _lower ( artist ) , Vars . ALBUM_LOWER : _lower ( album ) } res = MetadataDict ( common_tags ) res . add_items ( override_values . iteritems ( ) ) return res
prepare metadata dictionary for path subtitution of album art file .