def apply_item_metadata(item, track_info):
 item.artist = track_info.artist
 item.artist_sort = track_info.artist_sort
 item.artist_credit = track_info.artist_credit
 item.title = track_info.title
 item.mb_trackid = track_info.track_id
 if track_info.artist_id:
  item.mb_artistid = track_info.artist_id

def apply_item_metadata ( item , track_info ) : item . artist = track_info . artist item . artist_sort = track_info . artist_sort item . artist_credit = track_info . artist_credit item . title = track_info . title item . mb_trackid = track_info . track_id if track_info . artist_id : item . mb_artistid = track_info . artist_id
set an items metadata from its matched trackinfo object .