Update MIT Technology Review

Fixes #1635338 [MIT Technology Review magazine doesn't download main article](https://bugs.launchpad.net/calibre/+bug/1635338)
This commit is contained in:
Kovid Goyal 2016-10-20 23:12:14 +05:30
parent e92e7aeb96
commit a80d6302ec

View File

@ -53,7 +53,7 @@ class MitTechnologyReview(BasicNewsRecipe):
# parse articles # parse articles
current_articles = [] current_articles = []
for div in soup.findAll(attrs={'class': lambda x: x in for div in soup.findAll(attrs={'class': lambda x: x in
'magazine-features-item__top-title magazine-features-item-title author-tz__title feed-tz__title'.split()}): 'magazine-topper__title magazine-features-item__top-title magazine-features-item-title author-tz__title feed-tz__title'.split()}):
a = div.find('a', href=True) a = div.find('a', href=True)
title = self.tag_to_string(a).strip() title = self.tag_to_string(a).strip()
href = absurl(a['href']) href = absurl(a['href'])