proper loop cleanup

removed blanks
mp4 nonetype deletion

avoids errors when metadata is missing