mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix Arguments and facts. Fixes #1081585 (Updated recipe for Arguments & facts)
This commit is contained in:
parent
e29c081177
commit
2636046dd2
@ -1,5 +1,5 @@
|
|||||||
__license__ = 'GPL v3'
|
__license__ = 'GPL v3'
|
||||||
__copyright__ = '2010, Darko Miletic <darko.miletic at gmail.com>'
|
__copyright__ = '2010 - 2012, Darko Miletic <darko.miletic at gmail.com>'
|
||||||
'''
|
'''
|
||||||
www.aif.ru
|
www.aif.ru
|
||||||
'''
|
'''
|
||||||
@ -19,12 +19,19 @@ class AIF_ru(BasicNewsRecipe):
|
|||||||
encoding = 'cp1251'
|
encoding = 'cp1251'
|
||||||
language = 'ru'
|
language = 'ru'
|
||||||
publication_type = 'magazine'
|
publication_type = 'magazine'
|
||||||
extra_css = ' @font-face {font-family: "sans1";src:url(res:///opt/sony/ebook/FONT/tt0003m_.ttf)} body{font-family: Verdana,Arial,Helvetica,sans1,sans-serif} '
|
masthead_url = 'http://static3.aif.ru/glossy/index/i/logo.png'
|
||||||
keep_only_tags = [dict(name='div',attrs={'id':'inner'})]
|
extra_css = """
|
||||||
|
@font-face {font-family: "sans1";src:url(res:///opt/sony/ebook/FONT/tt0003m_.ttf)}
|
||||||
|
body{font-family: Verdana,Arial,Helvetica,sans1,sans-serif}
|
||||||
|
img{display: block}
|
||||||
|
"""
|
||||||
|
keep_only_tags = [
|
||||||
|
dict(name='div',attrs={'class':['content-header', 'zoom']})
|
||||||
|
,dict(name='div',attrs={'id':'article-text'})
|
||||||
|
]
|
||||||
remove_tags = [
|
remove_tags = [
|
||||||
dict(name=['iframe','object','link','base','input','img'])
|
dict(name=['iframe','object','link','base','input','meta'])
|
||||||
,dict(name='div',attrs={'class':'photo'})
|
,dict(name='div',attrs={'class':'in-topic'})
|
||||||
,dict(name='p',attrs={'class':'resizefont'})
|
|
||||||
]
|
]
|
||||||
|
|
||||||
feeds = [(u'News', u'http://www.aif.ru/rss/all.php')]
|
feeds = [(u'News', u'http://www.aif.ru/rss/all.php')]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user