mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Update Carta
This commit is contained in:
parent
2509951320
commit
b87130a948
@ -12,37 +12,33 @@ class Carta(BasicNewsRecipe):
|
|||||||
|
|
||||||
title = u'Carta'
|
title = u'Carta'
|
||||||
description = 'News about electronic publishing'
|
description = 'News about electronic publishing'
|
||||||
__author__ = 'Armin Geller' # AGe Update 2014-07-15
|
__author__ = 'Armin Geller' # AGe Update 2014-09-28
|
||||||
|
|
||||||
timefmt = ' [%a %d %b %Y]'
|
timefmt = ' [%a %d %b %Y]'
|
||||||
oldest_article = 7
|
oldest_article = 7
|
||||||
max_articles_per_feed = 50
|
max_articles_per_feed = 50
|
||||||
# no_stylesheets = True
|
no_stylesheets = True
|
||||||
# use_embedded_content = False
|
#use_embedded_content = False
|
||||||
remove_javascript = True
|
remove_javascript = True
|
||||||
encoding = 'utf-8'
|
encoding = 'utf-8'
|
||||||
language = 'de'
|
language = 'de'
|
||||||
|
|
||||||
cover_source = 'http://carta.info/carta/wp-content/uploads/2012/09/gross.jpg'
|
cover_url = 'http://carta.info/carta/wp-content/uploads/2012/09/gross.jpg'
|
||||||
masthead_url = 'http://www.carta.info/carta/wp-content/themes/carta4/images/logo.png'
|
#masthead_url = 'http://www.carta.info/carta/wp-content/themes/carta4/images/logo.png'
|
||||||
|
masthead_url ='http://upload.wikimedia.org/wikipedia/de/b/ba/Carta_logo.png'
|
||||||
extra_css = '''
|
extra_css = '''
|
||||||
h2 {font-size: 1.3em; font-style: italic}
|
h2 {font-size: 1.3em; font-style: italic}
|
||||||
.excerpt {font-size: 1.2em; font-style: italic}
|
.excerpt {font-size: 1.2em; font-style: italic}
|
||||||
'''
|
'''
|
||||||
|
|
||||||
keep_only_tags = [
|
keep_only_tags = [
|
||||||
dict(name='div', attrs={'class':'postarea'}),
|
dict(name='div', attrs={'class':['article-text','author']}),
|
||||||
|
dict(name='p', attrs={'class':'tags'}),
|
||||||
]
|
]
|
||||||
|
|
||||||
remove_tags_after = [
|
|
||||||
dict(name='div', attrs={'class':'the-content'})
|
|
||||||
]
|
|
||||||
|
|
||||||
remove_tags = [
|
remove_tags = [
|
||||||
dict(name='div', attrs={'id':['header', 'subnavbar']}),
|
dict(name='ul', attrs={'class':'meta'}),
|
||||||
dict(name='div', attrs={'addthis':'title'}),
|
|
||||||
dict(name='p', attrs={'class':'print'}),
|
|
||||||
dict(name='div', attrs={'style':'clear: both;'}),
|
|
||||||
]
|
]
|
||||||
|
|
||||||
feeds = [(u'Carta', u'http://feeds2.feedburner.com/carta-standard-rss')]
|
|
||||||
|
feeds = [ (u'Carta', u'http://feeds2.feedburner.com/carta-standard-rss') ]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user