Refresh the total duration of automation when the user add or remove
media in playlist.