mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-05 00:23:39 +02:00
Fix New Yorker cover not being downloaded
This commit is contained in:
parent
eea9b583fc
commit
38e486cb16
1 changed files with 3 additions and 2 deletions
|
|
@ -72,8 +72,9 @@ def parse_index(self):
|
|||
soup = self.index_to_soup(
|
||||
'https://www.newyorker.com/magazine?intcid=magazine')
|
||||
# soup = self.index_to_soup('file:///t/raw.html')
|
||||
cover_img = soup.find(
|
||||
attrs={'class': lambda x: x and 'MagazineCover__cover___' in x})
|
||||
cover_soup = self.index_to_soup('https://www.newyorker.com/archive')
|
||||
cover_img = cover_soup.find(
|
||||
attrs={'class': lambda x: x and 'MagazineSection__cover___' in x})
|
||||
if cover_img is not None:
|
||||
cover_img = cover_img.find('img')
|
||||
if cover_img is not None:
|
||||
|
|
|
|||
Loading…
Reference in a new issue