From df881c5de49cb4485a71ffddc0e9350c6423d7ac Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Mon, 19 Oct 2009 09:55:38 -0600 Subject: [PATCH] IGN: Improved HLN recipe --- resources/recipes/hln.recipe | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/resources/recipes/hln.recipe b/resources/recipes/hln.recipe index 8f4df42bcc..e327d50b6a 100644 --- a/resources/recipes/hln.recipe +++ b/resources/recipes/hln.recipe @@ -10,7 +10,7 @@ from calibre.ebooks.BeautifulSoup import Tag class HLN_be(BasicNewsRecipe): title = 'Het Belang Van Limburg' - __author__ = 'Darko Miletic' + __author__ = 'Darko Miletic and Sujata Raman' description = 'News from Belgium in Dutch' publisher = 'Het Belang Van Limburg' category = 'news, politics, Belgium' @@ -32,6 +32,14 @@ class HLN_be(BasicNewsRecipe): html2epub_options = 'publisher="' + publisher + '"\ncomments="' + description + '"\ntags="' + category + '"\noverride_css=" p {text-indent: 0cm; margin-top: 0em; margin-bottom: 0.5em} "' + extra_css = ''' + body{font-family:"Verdana",sans-serif; font-size:80%;} + .h1{font-family:"Verdana",sans-serif; font-size:large; font-weight:bold;} + .captionEmbeddedMasterObject{font-style:italic; font-size:80%;} + .gen_footnote3{font-size:80%; color: #666666;} + ''' + + keep_only_tags = [dict(name='div', attrs={'class':'art_box2'})] remove_tags = [ dict(name=['embed','object'])