Example #1
0
 def _processMovieDirectory(self, dirPath):
     """ Process the specfied directory path. """
     # Only ping the web for info if we need it
     movie = Movie(dirPath)
     movie.fetchVideoInfo(self.forceUpdate, self.foreign)
     # Perform the Actions
     if (self.lookupTrailer):      movie.lookupTrailerUrl(self.foreign)
     if (log.level >= verbose):    movie.logClassVars()
     if (self.logImdb):            movie.logImdbVars()
     if (self.saveNfo):            movie.saveNfo(self.foreign)
     if (self.renameFiles):        movie.renameFiles()
     if (self.renameDir):          movie.renameDirectory()
     if (self.downloadTrailer):    movie.downloadTrailer()