Refactored movie and tv scanning (remove duplicates)