def __create_movie(self, file_path):
     movie = Movie()
     movie.fill_with_file(file_path)
     movie_guessed_info = movie.get_guessed_info()
     movie.fetch_tmdb_info(movie_guessed_info.get_title(),
                           movie_guessed_info.get_year(),
                           movie_guessed_info.get_language())
     movie.generate_new_name(preferences.get_renaming_rule())
     return movie
Example #2
0
 def create_movie(self, file_path):
     # create a new movie object
     movie = Movie()
     movie.fill_with_file(file_path)
     movie_guessed_info = movie.get_guessed_info()
     movie.fetch_tmdb_info(movie_guessed_info.get_title(), movie_guessed_info.get_year(),
                           movie_guessed_info.get_language())
     # generate new movie name based on renaming rule
     movie.generate_new_name(preferences.get_renaming_rule())
     return movie