mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
...
This commit is contained in:
parent
28a990299c
commit
dde68e423b
@ -21,11 +21,11 @@ class StrangeHorizons(BasicNewsRecipe):
|
|||||||
resolve_internal_links = True
|
resolve_internal_links = True
|
||||||
oldest_article = 7
|
oldest_article = 7
|
||||||
|
|
||||||
extra_css = """
|
extra_css = '''
|
||||||
.author-biographies, .content-warning-container-ltr, .category {font-size:small; font-style:italic; font-color:#404040;}
|
.author-biographies, .content-warning-container-ltr, .category {font-size:small; font-style:italic; font-color:#404040;}
|
||||||
.byline {font-size:small; font-color:#202020;}
|
.byline {font-size:small; font-color:#202020;}
|
||||||
img {display:block; margin:0 auto;}
|
img {display:block; margin:0 auto;}
|
||||||
"""
|
'''
|
||||||
|
|
||||||
recipe_specific_options = {
|
recipe_specific_options = {
|
||||||
'days': {
|
'days': {
|
||||||
@ -41,8 +41,6 @@ class StrangeHorizons(BasicNewsRecipe):
|
|||||||
if d and isinstance(d, str):
|
if d and isinstance(d, str):
|
||||||
self.oldest_article = float(d)
|
self.oldest_article = float(d)
|
||||||
|
|
||||||
ignore_duplicate_articles = {'url'}
|
|
||||||
|
|
||||||
keep_only_tags = remove_tags_after = [dict(name='div', attrs={'class': 'post'})]
|
keep_only_tags = remove_tags_after = [dict(name='div', attrs={'class': 'post'})]
|
||||||
|
|
||||||
remove_tags = [dict(name='button'), classes('font-size sharedaddy comments-form-row')]
|
remove_tags = [dict(name='button'), classes('font-size sharedaddy comments-form-row')]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user