UpdateMedia cannot drill multiple levels of directories containing spaces.
For instance
SGU>Season 1>Water.avi will be found Stargate Universe>Season_1>Water.avi will be found. Stargate Universe>Season 1>Water.avi will not be found.
UpdateMedia.cpp is, of course, C++. I am looking at it but it is not a language I am proficient in.