fix missing lang string

pull/94/head
eric 2019-03-25 12:46:20 -04:00
parent 174b46abd1
commit 2396e23ae4
1 changed files with 2 additions and 1 deletions

View File

@ -55,6 +55,7 @@ def add_by_sitemap(url, maxnum=None):
def scrape_language(url):
scraper = get_scraper(url)
return scraper.metadata.get('language')
language = scraper.metadata.get('language')
return language if language else 'xx'