mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
New recipe for Windows SuperSite by Hypernova
This commit is contained in:
parent
cfcccb0443
commit
6c8d6a4edb
@ -233,7 +233,7 @@ class RTFMetadataWriter(MetadataWriterPlugin):
|
|||||||
class MOBIMetadataWriter(MetadataWriterPlugin):
|
class MOBIMetadataWriter(MetadataWriterPlugin):
|
||||||
|
|
||||||
name = 'Set MOBI metadata'
|
name = 'Set MOBI metadata'
|
||||||
file_types = set(['mobi', 'prc'])
|
file_types = set(['mobi', 'prc', 'azw'])
|
||||||
description = _('Set metadata in %s files')%'MOBI'
|
description = _('Set metadata in %s files')%'MOBI'
|
||||||
author = 'Marshall T. Vandegrift'
|
author = 'Marshall T. Vandegrift'
|
||||||
|
|
||||||
|
@ -31,7 +31,7 @@ recipe_modules = ['recipe_' + r for r in (
|
|||||||
'pobjeda', 'chicago_breaking_news', 'glasgow_herald', 'linuxdevices',
|
'pobjeda', 'chicago_breaking_news', 'glasgow_herald', 'linuxdevices',
|
||||||
'hindu', 'cincinnati_enquirer', 'physics_world', 'pressonline',
|
'hindu', 'cincinnati_enquirer', 'physics_world', 'pressonline',
|
||||||
'la_republica', 'physics_today', 'chicago_tribune', 'e_novine',
|
'la_republica', 'physics_today', 'chicago_tribune', 'e_novine',
|
||||||
'al_jazeera',
|
'al_jazeera', 'winsupersite',
|
||||||
)]
|
)]
|
||||||
|
|
||||||
import re, imp, inspect, time, os
|
import re, imp, inspect, time, os
|
||||||
|
28
src/calibre/web/feeds/recipes/recipe_winsupersite.py
Normal file
28
src/calibre/web/feeds/recipes/recipe_winsupersite.py
Normal file
@ -0,0 +1,28 @@
|
|||||||
|
import re
|
||||||
|
|
||||||
|
from calibre.web.feeds.news import BasicNewsRecipe
|
||||||
|
|
||||||
|
class Winsupersite(BasicNewsRecipe):
|
||||||
|
title = u'Supersite for Windows'
|
||||||
|
description = u'Paul Thurrott SuperSite for Windows'
|
||||||
|
publisher = 'Paul Thurrott'
|
||||||
|
__author__ = 'Hypernova'
|
||||||
|
language = _('English')
|
||||||
|
oldest_article = 30
|
||||||
|
max_articles_per_feed = 100
|
||||||
|
no_stylesheets = True
|
||||||
|
use_embedded_content = False
|
||||||
|
remove_javascript = True
|
||||||
|
html2lrf_options = ['--ignore-tables']
|
||||||
|
html2epub_options = 'linearize_tables = True'
|
||||||
|
remove_tags_before = dict(name='h1')
|
||||||
|
preprocess_regexps = [
|
||||||
|
(re.compile(r'<p>--Paul Thurrott.*</body>', re.DOTALL|re.IGNORECASE),
|
||||||
|
lambda match: '</body>'),
|
||||||
|
]
|
||||||
|
def get_browser(self):
|
||||||
|
br = BasicNewsRecipe.get_browser()
|
||||||
|
br.open('http://www.winsupersite.com')
|
||||||
|
return br
|
||||||
|
|
||||||
|
feeds = [(u'Supersite for Windows', u'http://www.winsupersite.com/supersite.xml')]
|
Loading…
x
Reference in New Issue
Block a user