def language(self):
    '\n        Human language the recipe is written in.\n\n        May be overridden by individual scrapers.\n        '
    candidate_languages = OrderedDict()
    html = self.soup.find('html', {'lang': True})
    candidate_languages[html.get('lang')] = True
    meta_language = (self.soup.find('meta', {'http-equiv': (lambda x: (x and (x.lower() == 'content-language'))), 'content': True}) if settings.META_HTTP_EQUIV else None)
    if meta_language:
        language = meta_language.get('content').split(',', 1)[0]
        if language:
            candidate_languages[language] = True
    if (len(candidate_languages) > 1):
        candidate_languages.pop('en', None)
    return candidate_languages.popitem(last=False)[0]
Human language the recipe is written in.

May be overridden by individual scrapers.
def language(self):
    '\n        Human language the recipe is written in.\n\n        May be overridden by individual scrapers.\n        '
    candidate_languages = OrderedDict()
    html = self.soup.find('html', {'lang': True})
    candidate_languages[html.get('lang')] = True
    meta_language = (self.soup.find('meta', {'http-equiv': (lambda x: (x and (x.lower() == 'content-language'))), 'content': True}) if settings.META_HTTP_EQUIV else None)
    if meta_language:
        language = meta_language.get('content').split(',', 1)[0]
        if language:
            candidate_languages[language] = True
    if (len(candidate_languages) > 1):
        candidate_languages.pop('en', None)
    return candidate_languages.popitem(last=False)[0]