mirror of
git://github.com/kovidgoyal/calibre.git
synced 2025-12-21 00:46:57 +01:00
Larger images in dilbert download
This commit is contained in:
parent
bc9d98e52a
commit
f587a7e825
1 changed files with 7 additions and 0 deletions
|
|
@ -3,6 +3,7 @@
|
|||
'''
|
||||
http://www.dilbert.com
|
||||
'''
|
||||
import re
|
||||
|
||||
from calibre.web.feeds.recipes import BasicNewsRecipe
|
||||
|
||||
|
|
@ -28,6 +29,12 @@ class DosisDiarias(BasicNewsRecipe):
|
|||
|
||||
feeds = [(u'Dilbert', u'http://feeds.dilbert.com/DilbertDailyStrip' )]
|
||||
|
||||
preprocess_regexps = [
|
||||
(re.compile('strip\..*\.gif', re.DOTALL|re.IGNORECASE),
|
||||
lambda match: 'strip.zoom.gif')
|
||||
]
|
||||
|
||||
|
||||
def get_article_url(self, article):
|
||||
return article.get('feedburner_origlink', None)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue