Add support for movies

I wanted to add support to your script for movies.  I also re-did some of the library function so it is able to correctly skip previously linked files.  Thought I'd share for others who are interested.