def check_valid_naming(pattern=None, multi=None, anime_type=None):
 if (pattern is None):
  pattern = sickbeard.NAMING_PATTERN
 if (anime_type is None):
  anime_type = sickbeard.NAMING_ANIME
 logger.log(((u'Checking whether the pattern ' + pattern) + u' is valid for a single episode'), logger.DEBUG)
 valid = validate_name(pattern, None, anime_type)
 if (multi is not None):
  logger.log(((u'Checking whether the pattern ' + pattern) + u' is valid for a multi episode'), logger.DEBUG)
  valid = (valid and validate_name(pattern, multi, anime_type))
 return valid

def check_valid_naming ( pattern = None , multi = None , anime_type = None ) : if ( pattern is None ) : pattern = sickbeard . NAMING_PATTERN if ( anime_type is None ) : anime_type = sickbeard . NAMING_ANIME logger . log ( ( ( u'Checking whether the pattern ' + pattern ) + u' is valid for a single episode' ) , logger . DEBUG ) valid = validate_name ( pattern , None , anime_type ) if ( multi is not None ) : logger . log ( ( ( u'Checking whether the pattern ' + pattern ) + u' is valid for a multi episode' ) , logger . DEBUG ) valid = ( valid and validate_name ( pattern , multi , anime_type ) ) return valid
checks if the name is can be parsed back to its original form for both single and multi episodes .