mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Nicer time fmt for WSJ
This commit is contained in:
parent
ed3ff3762d
commit
eccc5e1834
@ -260,7 +260,7 @@ class WSJ(BasicNewsRecipe):
|
||||
root = self.index_to_soup(self.wsj_itp_page, as_tree=True)
|
||||
for span in CSSSelect('span.date-date')(root):
|
||||
if span.text and span.text.strip():
|
||||
self.timefmt = span.text
|
||||
self.timefmt = ' [%s]' % span.text.strip()
|
||||
break
|
||||
for a in CSSSelect('div.itpSectionHeaderPdf a[href]')(root):
|
||||
self.cover_url = a.get('href')
|
||||
|
@ -197,7 +197,7 @@ class WSJ(BasicNewsRecipe):
|
||||
root = self.index_to_soup(self.wsj_itp_page, as_tree=True)
|
||||
for span in CSSSelect('span.date-date')(root):
|
||||
if span.text and span.text.strip():
|
||||
self.timefmt = span.text
|
||||
self.timefmt = ' [%s]' % span.text.strip()
|
||||
break
|
||||
for a in CSSSelect('div.itpSectionHeaderPdf a[href]')(root):
|
||||
self.cover_url = a.get('href')
|
||||
|
Loading…
x
Reference in New Issue
Block a user