mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
...
This commit is contained in:
parent
a64ae59113
commit
4836eb97ba
@ -1,7 +1,8 @@
|
||||
#!/usr/bin/env python
|
||||
|
||||
__license__ = 'GPL v3'
|
||||
__copyright__ = '2009, Mathieu Godlewski <mathieu at godlewski.fr>'
|
||||
__copyright__ = '''2009, Mathieu Godlewski <mathieu at godlewski.fr>
|
||||
2014, Rémi Vanicat <vanicat at debian.org>'''
|
||||
'''
|
||||
Courrier International
|
||||
'''
|
||||
@ -47,7 +48,7 @@ class CourrierInternational(BasicNewsRecipe):
|
||||
return br
|
||||
|
||||
def preprocess_html(self, soup):
|
||||
for link in soup.findAll("a",href=re.compile('^/(notule|sources|comment)')):
|
||||
for link in soup.findAll("a",href=re.compile('^/')):
|
||||
link["href"]='http://www.courrierinternational.com' + link["href"]
|
||||
return soup
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user