mirror of
				https://github.com/kovidgoyal/calibre.git
				synced 2025-10-31 10:37:00 -04:00 
			
		
		
		
	Larger images in dilbert download
This commit is contained in:
		
							parent
							
								
									bc9d98e52a
								
							
						
					
					
						commit
						f587a7e825
					
				| @ -3,6 +3,7 @@ __copyright__ = '2009, Darko Miletic <darko.miletic at gmail.com>' | ||||
| ''' | ||||
| 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…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user