separate getArtist() from getAuthor()

and move copy-pasted code into a function