mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Update A List Apart
This commit is contained in:
parent
62d0450dee
commit
7e56f63c33
@ -1,11 +1,12 @@
|
||||
# vim:fileencoding=UTF-8
|
||||
from __future__ import unicode_literals
|
||||
from calibre.web.feeds.news import BasicNewsRecipe
|
||||
import re
|
||||
|
||||
class AListApart (BasicNewsRecipe):
|
||||
__author__ = 'Marc Busqué <marc@lamarciana.com>'
|
||||
__url__ = 'http://www.lamarciana.com'
|
||||
__version__ = '2.0'
|
||||
__version__ = '2.0.1'
|
||||
__license__ = 'GPL v3'
|
||||
__copyright__ = '2012, Marc Busqué <marc@lamarciana.com>'
|
||||
title = u'A List Apart'
|
||||
@ -21,3 +22,9 @@ class AListApart (BasicNewsRecipe):
|
||||
feeds = [
|
||||
(u'A List Apart', u'http://feeds.feedburner.com/alistapart/abridged'),
|
||||
]
|
||||
|
||||
def image_url_processor(self, baseurl, url):
|
||||
if re.findall('alistapart\.com', url):
|
||||
return 'http:'+url
|
||||
else:
|
||||
return url
|
||||
|
Loading…
x
Reference in New Issue
Block a user