def getTitleFromName(title):
 if (title[(-1)] == ':'):
  title = title[:(-1)]
 spaceBracketIndex = title.find(' (')
 if (spaceBracketIndex > (-1)):
  return title[:spaceBracketIndex]
 return title

def getTitleFromName ( title ) : if ( title [ ( - 1 ) ] == ':' ) : title = title [ : ( - 1 ) ] spaceBracketIndex = title . find ( ' (' ) if ( spaceBracketIndex > ( - 1 ) ) : return title [ : spaceBracketIndex ] return title
get the title of this setting .