mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
...
This commit is contained in:
parent
58670f2fd1
commit
5e97591255
@ -44,7 +44,6 @@ class Espresso(BasicNewsRecipe):
|
|||||||
|
|
||||||
remove_tags = [
|
remove_tags = [
|
||||||
classes('_podcast-promo _newsletter-promo-container _time-last-updated'),
|
classes('_podcast-promo _newsletter-promo-container _time-last-updated'),
|
||||||
dict(attrs={'data-test-id': 'twib-audio-player'}),
|
|
||||||
]
|
]
|
||||||
|
|
||||||
def parse_index(self):
|
def parse_index(self):
|
||||||
@ -70,7 +69,10 @@ class Espresso(BasicNewsRecipe):
|
|||||||
hr.append(nt)
|
hr.append(nt)
|
||||||
for img in soup.findAll('img', src=True):
|
for img in soup.findAll('img', src=True):
|
||||||
img['src'] = re.sub(r'width=\d+', 'width=600', img['src'])
|
img['src'] = re.sub(r'width=\d+', 'width=600', img['src'])
|
||||||
|
if aud := soup.find(attrs={'data-test-id': 'twib-audio-player'}):
|
||||||
|
if div := aud.find_next('div'):
|
||||||
|
div.extract()
|
||||||
|
aud.extract()
|
||||||
return soup
|
return soup
|
||||||
|
|
||||||
def get_browser(self, *args, **kwargs):
|
def get_browser(self, *args, **kwargs):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user