Don't process user input if it is empty or just whitespace
stop after 5 if you don't find media
Merge pull request #33 from Trott/avoid-duplicates

Avoid duplicates