mirror of
git://github.com/kovidgoyal/calibre.git
synced 2025-12-25 00:45:30 +01:00
Update The New Republic
This commit is contained in:
parent
015845c7d3
commit
8e3092b78b
1 changed files with 4 additions and 0 deletions
|
|
@ -44,6 +44,10 @@ def parse_index(self):
|
|||
em=post.find('em')
|
||||
b=post.find('b')
|
||||
a=post.find('a',href=True)
|
||||
p=post.find('img', src=True)
|
||||
#Find cover
|
||||
if p is not None:
|
||||
self.cover_url = p['src'].strip()
|
||||
if em is not None:
|
||||
section_title = self.tag_to_string(em).strip()
|
||||
subsection_title = ''
|
||||
|
|
|
|||
Loading…
Reference in a new issue