def isFirstBestMatch(result):
 logger.log((u'Checking if we should stop searching for a better quality for for episode ' + result.name), logger.DEBUG)
 show_obj = result.episodes[0].show
 (any_qualities_, best_qualities) = Quality.splitQuality(show_obj.quality)
 return ((result.quality in best_qualities) if best_qualities else False)

def isFirstBestMatch ( result ) : logger . log ( ( u'Checking if we should stop searching for a better quality for for episode ' + result . name ) , logger . DEBUG ) show_obj = result . episodes [ 0 ] . show ( any_qualities_ , best_qualities ) = Quality . splitQuality ( show_obj . quality ) return ( ( result . quality in best_qualities ) if best_qualities else False )
checks if the given result is a best quality match and if we want to stop searching providers here .