Extracts the IDs for each movie.