def submit_albums(collection_id, release_ids):
 for i in range(0, len(release_ids), SUBMISSION_CHUNK_SIZE):
  chunk = release_ids[i:(i + SUBMISSION_CHUNK_SIZE)]
  mb_call(musicbrainzngs.add_releases_to_collection, collection_id, chunk)

def submit_albums ( collection_id , release_ids ) : for i in range ( 0 , len ( release_ids ) , SUBMISSION_CHUNK_SIZE ) : chunk = release_ids [ i : ( i + SUBMISSION_CHUNK_SIZE ) ] mb_call ( musicbrainzngs . add_releases_to_collection , collection_id , chunk )
add all of the release ids to the indicated collection .