mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix #850167 (Wall Street Journal Newsfetch Script does not capture cover image)
This commit is contained in:
parent
67ee0726e9
commit
e762bb8964
@ -94,9 +94,11 @@ class WallStreetJournal(BasicNewsRecipe):
|
|||||||
if date is not None:
|
if date is not None:
|
||||||
self.timefmt = ' [%s]'%self.tag_to_string(date)
|
self.timefmt = ' [%s]'%self.tag_to_string(date)
|
||||||
|
|
||||||
cov = soup.find('a', attrs={'class':'icon pdf'}, href=True)
|
cov = soup.find('div', attrs={'class':'itpSectionHeaderPdf'})
|
||||||
if cov is not None:
|
if cov is not None:
|
||||||
self.cover_url = cov['href']
|
a = cov.find('a', href=True)
|
||||||
|
if a is not None:
|
||||||
|
self.cover_url = a['href']
|
||||||
|
|
||||||
feeds = []
|
feeds = []
|
||||||
div = soup.find('div', attrs={'class':'itpHeader'})
|
div = soup.find('div', attrs={'class':'itpHeader'})
|
||||||
|
Loading…
x
Reference in New Issue
Block a user