#NEWLINE# def add_media_field( self , name , descriptor ) : #NEWLINE# #INDENT# "Add a field that is synchronized between media files and items.\n\n        When a media field is added ``item.write()`` will set the name\n        property of the item's MediaFile to ``item[name]`` and save the\n        changes. Similarly ``item.read()`` will set ``item[name]`` to\n        the value of the name property of the media file.\n\n        ``descriptor`` must be an instance of ``mediafile.MediaField``.\n        " #NEWLINE# from beets import library #NEWLINE# mediafile . MediaFile . add_field ( name , descriptor ) #NEWLINE# library . Item . _media_fields . add ( name )