def episode_num(season=None, episode=None, **kwargs):
 numbering = kwargs.pop(u'numbering', u'standard')
 if (numbering == u'standard'):
  if ((season is not None) and episode):
   return u'S{0:0>2}E{1:02}'.format(season, episode)
 elif (numbering == u'absolute'):
  if ((not (season and episode)) and (season or episode)):
   return u'{0:0>3}'.format((season or episode))

def episode_num ( season = None , episode = None , ** kwargs ) : numbering = kwargs . pop ( u'numbering' , u'standard' ) if ( numbering == u'standard' ) : if ( ( season is not None ) and episode ) : return u'S{0:0>2}E{1:02}' . format ( season , episode ) elif ( numbering == u'absolute' ) : if ( ( not ( season and episode ) ) and ( season or episode ) ) : return u'{0:0>3}' . format ( ( season or episode ) )
convert season and episode into string .