mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-08 16:43:40 +02:00
Update Economic and Political Weekly
This commit is contained in:
parent
376b166b1a
commit
3fd75f2dc9
1 changed files with 4 additions and 1 deletions
|
|
@ -63,7 +63,10 @@ def parse_index(self):
|
|||
for div in main.findAll(attrs={'class':lambda x: x and 'views-field-nothing' in x.split()}):
|
||||
title = self.tag_to_string(div)
|
||||
elems = div.findAll('a', href=True)
|
||||
desc, title = map(self.tag_to_string, elems)
|
||||
if len(elems) == 2:
|
||||
desc, title = map(self.tag_to_string, elems)
|
||||
else:
|
||||
title, desc = self.tag_to_string(elems[0]), ''
|
||||
url = absurl(elems[-1]['href'])
|
||||
self.log('\t', title, url)
|
||||
self.log('\t\t', desc)
|
||||
|
|
|
|||
Loading…
Reference in a new issue