mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-08 18:54:09 -04:00
...
This commit is contained in:
parent
0dd72fe725
commit
2781560b78
@ -33,8 +33,8 @@ class TheAtlantic(BasicNewsRecipe):
|
|||||||
soup = self.index_to_soup(self.INDEX)
|
soup = self.index_to_soup(self.INDEX)
|
||||||
sectit = soup.find('h1', attrs={'class':'sectionTitle'})
|
sectit = soup.find('h1', attrs={'class':'sectionTitle'})
|
||||||
if sectit is not None:
|
if sectit is not None:
|
||||||
texts = sectit.findAll('cufontext')
|
texts = self.tag_to_string(sectit).strip().split()[-2:]
|
||||||
texts = map(self.tag_to_string, texts[-2:])
|
if texts:
|
||||||
self.timefmt = ' [%s]'%(' '.join(texts))
|
self.timefmt = ' [%s]'%(' '.join(texts))
|
||||||
|
|
||||||
cover = soup.find('img', src=True, attrs={'class':'cover'})
|
cover = soup.find('img', src=True, attrs={'class':'cover'})
|
||||||
|
Loading…
x
Reference in New Issue
Block a user