From f42f736cc1d8d715450fb99e19280d465ed17533 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Wed, 23 Feb 2011 20:17:51 -0700 Subject: [PATCH] Both nytimes recipes now need subscriptions --- resources/recipes/nytimes.recipe | 4 ++-- resources/recipes/nytimes_sub.recipe | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/resources/recipes/nytimes.recipe b/resources/recipes/nytimes.recipe index 7e313e5727..b2043bb463 100644 --- a/resources/recipes/nytimes.recipe +++ b/resources/recipes/nytimes.recipe @@ -88,8 +88,8 @@ class NYTimes(BasicNewsRecipe): if headlinesOnly: title='New York Times Headlines' - description = 'Headlines from the New York Times' - needs_subscription = False + description = 'Headlines from the New York Times. Needs a subscription from http://www.nytimes.com' + needs_subscription = True elif webEdition: title='New York Times (Web)' description = 'New York Times on the Web' diff --git a/resources/recipes/nytimes_sub.recipe b/resources/recipes/nytimes_sub.recipe index 4077065d91..d24307c887 100644 --- a/resources/recipes/nytimes_sub.recipe +++ b/resources/recipes/nytimes_sub.recipe @@ -96,18 +96,18 @@ class NYTimes(BasicNewsRecipe): if headlinesOnly: title='New York Times Headlines' description = 'Headlines from the New York Times' - needs_subscription = False + needs_subscription = True elif webEdition: title='New York Times (Web)' description = 'New York Times on the Web' needs_subscription = True elif replaceKindleVersion: - title='The New York Times' + title='The New York Times' description = 'Today\'s New York Times' needs_subscription = True else: title='New York Times' - description = 'Today\'s New York Times' + description = 'Today\'s New York Times. Needs subscription from http://www.nytimes.com' needs_subscription = True @@ -676,7 +676,7 @@ class NYTimes(BasicNewsRecipe): if hlines: for hline in hlines: hline.extract() - + #find all section headers hlines = runAround.findAll('h6') if hlines: