mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix #910340 (Obtaining cover page in recipe La Razón, Bolivia)
This commit is contained in:
parent
b6d14d49c1
commit
3c2a2efd9d
@ -25,6 +25,7 @@ class LaRazon_Bol(BasicNewsRecipe):
|
|||||||
img{margin-bottom: 0.4em; display: block}
|
img{margin-bottom: 0.4em; display: block}
|
||||||
.meta{font-size: small; font-family: Arial,Helvetica,sans-serif}
|
.meta{font-size: small; font-family: Arial,Helvetica,sans-serif}
|
||||||
"""
|
"""
|
||||||
|
INDEX = 'http://www.la-razon.com/'
|
||||||
|
|
||||||
conversion_options = {
|
conversion_options = {
|
||||||
'comment' : description
|
'comment' : description
|
||||||
@ -60,3 +61,10 @@ class LaRazon_Bol(BasicNewsRecipe):
|
|||||||
for item in soup.findAll(style=True):
|
for item in soup.findAll(style=True):
|
||||||
del item['style']
|
del item['style']
|
||||||
return soup
|
return soup
|
||||||
|
|
||||||
|
def get_cover_url(self):
|
||||||
|
soup = self.index_to_soup(self.INDEX)
|
||||||
|
lightbox = soup.find('div', attrs = {'class' : 'lightbox lightbox-frontpage'})
|
||||||
|
return lightbox.img['src']
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user