mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
New recipe for NPR
This commit is contained in:
parent
de6541ebe3
commit
975bff46a2
@ -1,8 +1,8 @@
|
||||
from calibre.web.feeds.news import BasicNewsRecipe
|
||||
|
||||
class AdvancedUserRecipe1257775999(BasicNewsRecipe):
|
||||
class AnDrumaMor(BasicNewsRecipe):
|
||||
title = u'An Druma M\xf3r'
|
||||
__author__ = "David O'Calaghan"
|
||||
__author__ = "David O'Callaghan"
|
||||
oldest_article = 7
|
||||
max_articles_per_feed = 100
|
||||
language = 'ga'
|
||||
|
19
resources/recipes/npr.recipe
Normal file
19
resources/recipes/npr.recipe
Normal file
@ -0,0 +1,19 @@
|
||||
from calibre.web.feeds.news import BasicNewsRecipe
|
||||
|
||||
class AdvancedUserRecipe1257302745(BasicNewsRecipe):
|
||||
title = u'National Public Radio'
|
||||
oldest_article = 7
|
||||
language = 'en'
|
||||
__author__ = 'onyxrev'
|
||||
max_articles_per_feed = 100
|
||||
|
||||
remove_tags_before = {'class':'storytitle'}
|
||||
remove_tags_after = dict(name='div', attrs={'id':'storytext' })
|
||||
remove_tags = [
|
||||
dict(name='body', attrs={'id':'blog'}),
|
||||
dict(name='div', attrs={'class':'enlarge_measure'}),
|
||||
dict(name='div', attrs={'class':'enlarge_html'}),
|
||||
dict(name='div', attrs={'class':'bucketwrap primary'})
|
||||
]
|
||||
|
||||
feeds = [(u'National Public Radio', u'http://www.npr.org/rss/rss.php?id=1001')]
|
@ -88,7 +88,7 @@ class POCKETBOOK360(EB600):
|
||||
|
||||
gui_name = 'PocketBook 360'
|
||||
|
||||
FORMATS = ['epub', 'pdf', 'txt']
|
||||
FORMATS = ['epub', 'fb2', 'pdf', 'djvu', 'rtf', 'chm', 'txt']
|
||||
|
||||
VENDOR_NAME = 'PHILIPS'
|
||||
WINDOWS_MAIN_MEM = 'MASS_STORGE'
|
||||
|
Loading…
x
Reference in New Issue
Block a user