mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-08 10:44:09 -04:00
Fix WSJ
This commit is contained in:
parent
a8ca7b362c
commit
13e3d2c610
@ -69,8 +69,10 @@ class WallStreetJournal(BasicNewsRecipe):
|
|||||||
soup = self.wsj_get_index()
|
soup = self.wsj_get_index()
|
||||||
|
|
||||||
year = strftime('%Y')
|
year = strftime('%Y')
|
||||||
for x in soup.findAll('td', attrs={'class':'b14'}):
|
for x in soup.findAll('td', height='25', attrs={'class':'b14'}):
|
||||||
txt = self.tag_to_string(x).strip()
|
txt = self.tag_to_string(x).strip()
|
||||||
|
txt = txt.replace(u'\xa0', ' ')
|
||||||
|
txt = txt.encode('ascii', 'ignore')
|
||||||
if year in txt:
|
if year in txt:
|
||||||
self.timefmt = ' [%s]'%txt
|
self.timefmt = ' [%s]'%txt
|
||||||
break
|
break
|
||||||
|
Loading…
x
Reference in New Issue
Block a user