From cc2757ebd8afc88c1fc7f4d03a8471de27cab0a4 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Thu, 8 Sep 2016 21:11:36 +0530 Subject: [PATCH] ... --- recipes/wsj.recipe | 2 +- recipes/wsj_free.recipe | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/recipes/wsj.recipe b/recipes/wsj.recipe index 64bc41ab24..169f1afff7 100644 --- a/recipes/wsj.recipe +++ b/recipes/wsj.recipe @@ -233,7 +233,7 @@ class WSJ(BasicNewsRecipe): # return self.test_wsj_index() root = self.index_to_soup(self.wsj_itp_page, as_tree=True) for span in CSSSelect('span.date-date')(root): - if span.text: + if span.text and span.text.strip(): self.timefmt = span.text break for a in CSSSelect('div.itpSectionHeaderPdf a[href]')(root): diff --git a/recipes/wsj_free.recipe b/recipes/wsj_free.recipe index cefe94e61c..d78f91130f 100644 --- a/recipes/wsj_free.recipe +++ b/recipes/wsj_free.recipe @@ -191,7 +191,7 @@ class WSJ(BasicNewsRecipe): # return self.test_wsj_index() root = self.index_to_soup(self.wsj_itp_page, as_tree=True) for span in CSSSelect('span.date-date')(root): - if span.text: + if span.text and span.text.strip(): self.timefmt = span.text break for a in CSSSelect('div.itpSectionHeaderPdf a[href]')(root):