From d250b415d1a3abb52e52c066a73be77c5d05280f Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Fri, 1 Jan 2010 12:40:38 -0700 Subject: [PATCH 1/2] ... --- src/calibre/library/save_to_disk.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/calibre/library/save_to_disk.py b/src/calibre/library/save_to_disk.py index 537d7db7c1..95cb768c13 100644 --- a/src/calibre/library/save_to_disk.py +++ b/src/calibre/library/save_to_disk.py @@ -26,7 +26,7 @@ FORMAT_ARG_DESCS = dict( author_sort=_('The author sort string'), tags=_('The tags'), series=_('The series'), - series_index=_('The series number'), + series_index=_('The series number. To get leading zeros use {series_index:03n}'), rating=_('The rating'), isbn=_('The ISBN'), publisher=_('The publisher'), From 5ca2f421b77f11df9ae22c21396012ce5fd27205 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Fri, 1 Jan 2010 13:02:44 -0700 Subject: [PATCH 2/2] New recipe for Pilot Online by Krittika Goyal --- resources/recipes/pilot.recipe | 45 ++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 resources/recipes/pilot.recipe diff --git a/resources/recipes/pilot.recipe b/resources/recipes/pilot.recipe new file mode 100644 index 0000000000..3b4c92420f --- /dev/null +++ b/resources/recipes/pilot.recipe @@ -0,0 +1,45 @@ +from calibre.web.feeds.news import BasicNewsRecipe + +class PilotOnline(BasicNewsRecipe): + title = u'Pilot Online' + language = 'en' + __author__ = 'Krittika Goyal' + oldest_article = 120 #days + max_articles_per_feed = 25 + + + no_stylesheets = True + remove_tags_before = dict(name='div', attrs={'id':'wrapper'}) + #remove_tags_after = dict(name='td', attrs={'class':'asset-bar'}) + remove_tags = [ + dict(name='iframe'), + dict(name='div', attrs={'class':['breadcrumb', 'asset-bar', 'footerLogos', 'footerLinks', 'lefty', 'righty', 'last', 'subFooter', 'footerLinks-last', 'comment clear-block', 'box', 'related', ]}), + dict(name='div', attrs={'id':['rightColumn']}), + dict(name='span', attrs={'class':'comment_forbidden'}), + dict(name='ul', attrs={'class':'links inline'}), + dict(name='p', attrs={'id':'commentadvisory'}), + dict(name='div', attrs={'style':['width: 300px; margin-right: 2em; float: left;']}), + dict(name='div', style="float:right; width: 300px;"), + dict(name='p', style="clear:both;"), + #dict(name='p', attrs={'name':'&lpos=footer_textlinks'}), + dict(name='span', text=':'), + ] + + feeds = [ +('Hampton Roads', + 'http://hamptonroads.com/taxterm/11'), + 'http://hamptonroads.com/taxterm/12', + 'http://hamptonroads.com/taxterm/222', + 'http://hamptonroads.com/taxterm/224', + 'http://hamptonroads.com/taxterm/226', + 'http://hamptonroads.com/taxterm/3', + 'http://hamptonroads.com/taxterm/149', + 'http://hamptonroads.com/taxterm/228', + 'http://hamptonroads.com/taxterm/4', + 'http://hamptonroads.com/taxterm/522', + 'http://hamptonroads.com/taxterm/420', + 'http://hamptonroads.com/taxterm/227', + 'http://hamptonroads.com/taxterm/231', + 'http://hamptonroads.com/taxterm/232', +] +