def _GetEpisodeName(self, showID, season, episode):
    """
    Get episode name from epguides show info.

    Parameters
    ----------
      showID : string
        Identifier matching show in epguides.

      season : int
        Season number.

      epiosde : int
        Epiosde number.

    Returns
    ----------
      int or None
        If an episode name is found this is returned, otherwise the return
        value is None.
    """
    # Load data for showID from dictionary
    showInfo = csv.reader(self._showInfoDict[showID].splitlines())
    for rowCnt, row in enumerate(showInfo):
      if rowCnt == 0:
        # Get header column index
        for colCnt, column in enumerate(row):
          if column == 'season':
            seasonIndex = colCnt
          if column == 'episode':
            episodeIndex = colCnt
          if column == 'title':
            titleIndex = colCnt
      else:
        # Iterate rows until matching season and episode found
        try:
          int(row[seasonIndex])
          int(row[episodeIndex])
        except ValueError:
          # Skip rows which don't provide integer season or episode numbers
          pass
        else:
          if int(row[seasonIndex]) == int(season) and int(row[episodeIndex]) == int(episode):
            goodlogging.Log.Info("EPGUIDE", "Episode name is {0}".format(row[titleIndex]), verbosity=self.logVerbosity)
            return row[titleIndex]
    return None
def _GetEpisodeName ( self , showID , season , episode ) : showInfo = csv . reader ( self . _showInfoDict [ showID ] . splitlines ( ) ) for rowCnt , row in enumerate ( showInfo ) : if rowCnt == 0 : for colCnt , column in enumerate ( row ) : if column == 'season' : seasonIndex = colCnt if column == 'episode' : episodeIndex = colCnt if column == 'title' : titleIndex = colCnt else : try : int ( row [ seasonIndex ] ) int ( row [ episodeIndex ] ) except ValueError : pass else : if int ( row [ seasonIndex ] ) == int ( season ) and int ( row [ episodeIndex ] ) == int ( episode ) : goodlogging . Log . Info ( "EPGUIDE" , "Episode name is {0}" . format ( row [ titleIndex ] ) , verbosity = self . logVerbosity ) return row [ titleIndex ] return None
Get episode name from epguides show info.

    Parameters
    ----------
      showID : string
        Identifier matching show in epguides.

      season : int
        Season number.

      epiosde : int
        Epiosde number.

    Returns
    ----------
      int or None
        If an episode name is found this is returned, otherwise the return
        value is None.