songs.size())));
}
long broadcastLength = 0;
for (int num = 0; num < random.size(); num++) {
JizzSong song = random.get(num);
// TODO What if a song hasn't been encoded yet?
song.setBroadcastOrder(num);
song = jizzSongDao.createOrUpdateSong(song);
broadcastLength += song.getLength();
}
broadcast.setActualStart(new Date(broadcast.getFinale().getTime()
- broadcastLength));
broadcast.setEstimatedStart(broadcast.getActualStart());