mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-09 04:52:48 +02:00
Update Slate
Fixes #1774841 [Failed: Fetch news from Slate](https://bugs.launchpad.net/calibre/+bug/1774841)
This commit is contained in:
parent
000c53b3b2
commit
775ea77de5
1 changed files with 2 additions and 0 deletions
|
|
@ -65,6 +65,8 @@ def parse_index(self):
|
|||
def slate_section_articles(self, soup):
|
||||
ans = []
|
||||
main = soup.find('article', attrs={'class': 'main'})
|
||||
if main is None:
|
||||
return ans
|
||||
for a in main.findAll('a', attrs={'class': 'primary'}):
|
||||
url = a['href']
|
||||
if url.endswith('/'):
|
||||
|
|
|
|||
Loading…
Reference in a new issue