code: def GenerateNewFileName(self):
      
      if self.showInfo.showName is not None and self.showInfo.seasonNum is not None and \
         self.showInfo.episodeNum is not None and self.showInfo.episodeName is not None:
        ext = os.path.splitext(self.fileInfo.origPath)[1]
        newFileName = "{0}.S{1}E{2}".format(self.showInfo.showName, self.showInfo.seasonNum, \
                                              self.showInfo.episodeNum)
  
        for episodeNum in self.showInfo.multiPartEpisodeNumbers:
          newFileName = newFileName + "_{0}".format(episodeNum)
  
        newFileName = newFileName + ".{0}{1}".format(self.showInfo.episodeName, ext)
        newFileName = util.StripSpecialCharacters(newFileName)
        return newFileName
docs: Create new file name from show name, season number, episode number
      and episode name in format ShowName.S<NUM>.E<NUM>.EpisodeName.
  
      Returns
      ----------
        string
          New file name in format ShowName.S<NUM>.E<NUM>.EpisodeName.