diff --git a/resources/images/news/the_workingham_times.png b/resources/images/news/the_wokingham_times.png similarity index 100% rename from resources/images/news/the_workingham_times.png rename to resources/images/news/the_wokingham_times.png diff --git a/resources/recipes/the_workingham_times.recipe b/resources/recipes/the_workingham_times.recipe index ad069f1e9b..2c4f33261a 100644 --- a/resources/recipes/the_workingham_times.recipe +++ b/resources/recipes/the_workingham_times.recipe @@ -6,8 +6,8 @@ www.getwokingham.co.uk from calibre.web.feeds.recipes import BasicNewsRecipe -class TheWorkinghamTimes(BasicNewsRecipe): - title = 'The Workingham Times' +class TheWokinghamTimes(BasicNewsRecipe): + title = 'The Wokingham Times' __author__ = 'Darko Miletic' description = 'News from UK' oldest_article = 2 @@ -19,11 +19,11 @@ class TheWorkinghamTimes(BasicNewsRecipe): category = 'news, UK, world' language = 'en_GB' publication_type = 'newsportal' - extra_css = """ + extra_css = """ body{ font-family: Arial,sans-serif } - img{display: block; margin-bottom: 0.4em} + img{display: block; margin-bottom: 0.4em} """ - + conversion_options = { 'comments' : description ,'tags' : category @@ -32,10 +32,10 @@ class TheWorkinghamTimes(BasicNewsRecipe): } keep_only_tags = [dict(name='div', attrs={'id':'article-body'})] - remove_tags = [ + remove_tags = [ dict(name='div' , attrs={'class':['ad']}) ,dict(name=['meta','base','iframe','embed','object']) - ,dict(name='span' , attrs={'class':'caption small'}) + ,dict(name='span' , attrs={'class':'caption small'}) ] remove_attributes = ['width','height','lang'] @@ -55,5 +55,5 @@ class TheWorkinghamTimes(BasicNewsRecipe): item.replaceWith(str) else: item.name = 'span' - del item['href'] - return soup + del item['href'] + return soup \ No newline at end of file