'Return a list of items from `lib` that have the same artist
and title as the task.'

def find_duplicates(self, lib):

    (artist, title) = self.chosen_ident()
    found_items = []
    query = dbcore.AndQuery((dbcore.MatchQuery('artist', artist), dbcore.MatchQuery('title', title)))
    for other_item in lib.items(query):
        if (other_item.path != self.item.path):
            found_items.append(other_item)
    return found_items
