'Find the pre-import MediaFile for an Item'

def find_media_file(self, item):

    for m in self.media_files:
        if (m.title.replace('Tag', 'Applied') == item.title):
            return m
    raise AssertionError((u'No    MediaFile    found    for    Item    ' + util.displayable_path(item.path)))
