mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-08 02:34:06 -04:00
fix: granta recipe not finding index
This commit is contained in:
parent
cd3d151e7e
commit
1f444e8878
@ -213,10 +213,10 @@ class Granta(BasicNewsRecipe):
|
|||||||
|
|
||||||
def parse_index(self):
|
def parse_index(self):
|
||||||
if force_issue_download is None:
|
if force_issue_download is None:
|
||||||
soup = self.index_to_soup('https://granta.com/')
|
soup = self.index_to_soup('https://granta.com/issues')
|
||||||
|
|
||||||
# Get latest issue
|
# Get latest issue
|
||||||
issueInfo = soup.find(**classes('featured_product__image'))
|
issueInfo = soup.find(**classes('explore-issue-result'))
|
||||||
issueAnchor = issueInfo.findParent('a', href=True)
|
issueAnchor = issueInfo.findParent('a', href=True)
|
||||||
issueLink = issueAnchor.get('href')
|
issueLink = issueAnchor.get('href')
|
||||||
else:
|
else:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user