From f1213d590cd77a24fd7c7844b891003fd3ea1bc5 Mon Sep 17 00:00:00 2001 From: eric Date: Mon, 1 Jan 2018 19:25:00 -0500 Subject: [PATCH] fix can_scrape --- core/loaders/scrape.py | 2 +- core/loaders/ubiquity.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/core/loaders/scrape.py b/core/loaders/scrape.py index e633b3e4..d0ba8a0e 100644 --- a/core/loaders/scrape.py +++ b/core/loaders/scrape.py @@ -22,7 +22,7 @@ class BaseScraper(object): designed to make at least a decent guess for webpages that embed metadata ''' can_scrape_hosts = False - can_scrape_strings = [''] #should always return true + can_scrape_strings = False @classmethod def can_scrape(cls, url): ''' return True if the class can scrape the URL ''' diff --git a/core/loaders/ubiquity.py b/core/loaders/ubiquity.py index 27f7f0a1..dec8f175 100644 --- a/core/loaders/ubiquity.py +++ b/core/loaders/ubiquity.py @@ -22,7 +22,7 @@ class UbiquityScraper(BaseScraper): def get_language(self): langlabel = self.doc.find(string='Language') - lang = langlabel.parent.parent.find_next_sibling() + lang = langlabel.parent.parent.find_next_sibling() if langlabel else '' lang = lang.get_text() if lang else '' lang = get_language_code(lang) if lang else '' if lang: