mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Both nytimes recipes now need subscriptions
This commit is contained in:
parent
fe064ee18d
commit
f42f736cc1
@ -88,8 +88,8 @@ class NYTimes(BasicNewsRecipe):
|
|||||||
|
|
||||||
if headlinesOnly:
|
if headlinesOnly:
|
||||||
title='New York Times Headlines'
|
title='New York Times Headlines'
|
||||||
description = 'Headlines from the New York Times'
|
description = 'Headlines from the New York Times. Needs a subscription from http://www.nytimes.com'
|
||||||
needs_subscription = False
|
needs_subscription = True
|
||||||
elif webEdition:
|
elif webEdition:
|
||||||
title='New York Times (Web)'
|
title='New York Times (Web)'
|
||||||
description = 'New York Times on the Web'
|
description = 'New York Times on the Web'
|
||||||
|
@ -96,18 +96,18 @@ class NYTimes(BasicNewsRecipe):
|
|||||||
if headlinesOnly:
|
if headlinesOnly:
|
||||||
title='New York Times Headlines'
|
title='New York Times Headlines'
|
||||||
description = 'Headlines from the New York Times'
|
description = 'Headlines from the New York Times'
|
||||||
needs_subscription = False
|
needs_subscription = True
|
||||||
elif webEdition:
|
elif webEdition:
|
||||||
title='New York Times (Web)'
|
title='New York Times (Web)'
|
||||||
description = 'New York Times on the Web'
|
description = 'New York Times on the Web'
|
||||||
needs_subscription = True
|
needs_subscription = True
|
||||||
elif replaceKindleVersion:
|
elif replaceKindleVersion:
|
||||||
title='The New York Times'
|
title='The New York Times'
|
||||||
description = 'Today\'s New York Times'
|
description = 'Today\'s New York Times'
|
||||||
needs_subscription = True
|
needs_subscription = True
|
||||||
else:
|
else:
|
||||||
title='New York Times'
|
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
|
needs_subscription = True
|
||||||
|
|
||||||
|
|
||||||
@ -676,7 +676,7 @@ class NYTimes(BasicNewsRecipe):
|
|||||||
if hlines:
|
if hlines:
|
||||||
for hline in hlines:
|
for hline in hlines:
|
||||||
hline.extract()
|
hline.extract()
|
||||||
|
|
||||||
#find all section headers
|
#find all section headers
|
||||||
hlines = runAround.findAll('h6')
|
hlines = runAround.findAll('h6')
|
||||||
if hlines:
|
if hlines:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user