def _split_series_episode(title):
 series_title = ''
 episode_or_year = ''
 if (title[(-1):] == '}'):
  begin_eps = title.rfind('{')
  if (begin_eps == (-1)):
   return ('', '')
  series_title = title[:begin_eps].rstrip()
  episode_or_year = title[begin_eps:].strip()
  if (episode_or_year[:12] == '{SUSPENDED}}'):
   return ('', '')
 elif (title[0:1] == '"'):
  second_quot = (title[1:].find('"') + 2)
  if (second_quot != 1):
   episode_or_year = title[second_quot:].lstrip()
   first_char = episode_or_year[0:1]
   if (not first_char):
    return ('', '')
   if (first_char != '('):
    series_title = title[:second_quot]
 return (series_title, episode_or_year)

def _split_series_episode ( title ) : series_title = '' episode_or_year = '' if ( title [ ( - 1 ) : ] == '}' ) : begin_eps = title . rfind ( '{' ) if ( begin_eps == ( - 1 ) ) : return ( '' , '' ) series_title = title [ : begin_eps ] . rstrip ( ) episode_or_year = title [ begin_eps : ] . strip ( ) if ( episode_or_year [ : 12 ] == '{SUSPENDED}}' ) : return ( '' , '' ) elif ( title [ 0 : 1 ] == '"' ) : second_quot = ( title [ 1 : ] . find ( '"' ) + 2 ) if ( second_quot != 1 ) : episode_or_year = title [ second_quot : ] . lstrip ( ) first_char = episode_or_year [ 0 : 1 ] if ( not first_char ) : return ( '' , '' ) if ( first_char != '(' ) : series_title = title [ : second_quot ] return ( series_title , episode_or_year )
return the series and the episode titles; if this is not a series episode .