mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-08 10:44:09 -04:00
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:
parent
e92e7aeb96
commit
a80d6302ec
@ -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'])
|
||||||
|
Loading…
x
Reference in New Issue
Block a user