mirror of
git://github.com/kovidgoyal/calibre.git
synced 2025-12-29 06:56:15 +01:00
Update Caravan Magazine
This commit is contained in:
parent
f9c9af6463
commit
9d3de69829
1 changed files with 2 additions and 1 deletions
|
|
@ -15,6 +15,7 @@ class CaravanMagazine(BasicNewsRecipe):
|
|||
description = 'An Indian Journal of politics and culture'
|
||||
language = 'en_IN'
|
||||
timefmt = ' [%b, %Y]'
|
||||
encoding = 'utf-8'
|
||||
|
||||
no_stylesheets = True
|
||||
|
||||
|
|
@ -48,7 +49,7 @@ def parse_index(self):
|
|||
if pre is not None:
|
||||
pre.extract()
|
||||
a = details.find('a')
|
||||
url = base_url + a['href']
|
||||
url = base_url + a['href'].lstrip('/')
|
||||
title = self.tag_to_string(a)
|
||||
desc = self.tag_to_string(details.find('div'))
|
||||
self.log('\t', title, url)
|
||||
|
|
|
|||
Loading…
Reference in a new issue