Update ap.recipe

This commit is contained in:
unkn0w7n 2025-03-27 22:45:34 +05:30
parent 0f52676e4f
commit bbd416dc7b

View File

@ -67,7 +67,7 @@ class AssociatedPress(BasicNewsRecipe):
for v in soup.findAll('bsp-jw-player', attrs={'poster': True}): for v in soup.findAll('bsp-jw-player', attrs={'poster': True}):
v.name = 'img' v.name = 'img'
v.attrs = {'src': v.get('poster', '')} v.attrs = {'src': v.get('poster', '')}
for st in soup.findAll(**classes('CarouselSlide-infoDescription')): for st in soup.findAll(**classes('CarouselSlide-infoDescription Figure-caption')):
if p := st.find('p'): if p := st.find('p'):
p.name = 'span' p.name = 'span'
for h in soup.findAll(['h2', 'h3']): for h in soup.findAll(['h2', 'h3']):