Update Slate

Fixes #1774841 [Failed: Fetch news from Slate](https://bugs.launchpad.net/calibre/+bug/1774841)
This commit is contained in:
Kovid Goyal 2018-06-11 17:44:16 +05:30
parent 000c53b3b2
commit 775ea77de5
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -65,6 +65,8 @@ class Slate(BasicNewsRecipe):
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('/'):