def findCertainShow(showList, indexerid):
 if ((indexerid is None) or (showList is None) or (len(showList) == 0)):
  return None
 indexer_ids = ([indexerid] if (not isinstance(indexerid, list)) else indexerid)
 results = [show for show in showList if (show.indexerid in indexer_ids)]
 if (not results):
  return None
 if (len(results) == 1):
  return results[0]
 raise MultipleShowObjectsException()

def findCertainShow ( showList , indexerid ) : if ( ( indexerid is None ) or ( showList is None ) or ( len ( showList ) == 0 ) ) : return None indexer_ids = ( [ indexerid ] if ( not isinstance ( indexerid , list ) ) else indexerid ) results = [ show for show in showList if ( show . indexerid in indexer_ids ) ] if ( not results ) : return None if ( len ( results ) == 1 ) : return results [ 0 ] raise MultipleShowObjectsException ( )
find a show by indexer id in the show list .