mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-02-22 19:45:07 +01:00
Nicer time fmt for WSJ
This commit is contained in:
parent
ed3ff3762d
commit
eccc5e1834
2 changed files with 2 additions and 2 deletions
|
|
@ -260,7 +260,7 @@ def parse_index(self):
|
|||
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 @@ def parse_index(self):
|
|||
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…
Reference in a new issue