Update pc_world.recipe

magzter cover
This commit is contained in:
unkn0wn 2025-06-27 11:08:38 +05:30 committed by GitHub
parent 31a6664710
commit dcebd2df8f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -94,5 +94,4 @@ class pcWorld(BasicNewsRecipe):
soup = self.index_to_soup(
'https://www.magzter.com/US/IDG-Consumer-and-SMB,-Inc./PCWorld/Computer-&-Mobile/'
)
for citem in soup.findAll('meta', content=lambda s: s and s.endswith('view/3.jpg')):
return citem['content']
return soup.find('img', id=lambda s: s and 'mgd__lhd__cover' in s.split())['src']