'Returns a new library with only albums/items added to ipfs'

def ipfs_added_albums(self, rlib, tmpname):

    tmplib = library.Library(tmpname)
    for album in rlib.albums():
        try:
            if album.ipfs:
                self.create_new_album(album, tmplib)
        except AttributeError:
            pass
    return tmplib
