Factored out code. Also ignores empty files.

If there is a blank artist, album title, or track title is blank the
file will be ignored.