def check_force_season_folders(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
 valid = (not validate_name(pattern, None, anime_type, file_only=True))
 if (multi is not None):
  valid = (valid or (not validate_name(pattern, multi, anime_type, file_only=True)))
 return valid

def check_force_season_folders ( 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 valid = ( not validate_name ( pattern , None , anime_type , file_only = True ) ) if ( multi is not None ) : valid = ( valid or ( not validate_name ( pattern , multi , anime_type , file_only = True ) ) ) return valid
checks if the name can still be parsed if you strip off the folders to determine if we need to force season folders to be enabled or not .