mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Update NYTimes
This commit is contained in:
parent
2367d3464c
commit
6c9fc1c833
@ -90,7 +90,6 @@ class NewYorkTimes(BasicNewsRecipe):
|
||||
no_stylesheets = True
|
||||
compress_news_images = True
|
||||
compress_news_images_auto_size = 5
|
||||
remove_attributes = ['style']
|
||||
conversion_options = {'flow_size': 0}
|
||||
|
||||
@property
|
||||
|
@ -90,7 +90,6 @@ class NewYorkTimes(BasicNewsRecipe):
|
||||
no_stylesheets = True
|
||||
compress_news_images = True
|
||||
compress_news_images_auto_size = 5
|
||||
remove_attributes = ['style']
|
||||
conversion_options = {'flow_size': 0}
|
||||
|
||||
@property
|
||||
|
@ -10,7 +10,7 @@ from pprint import pprint
|
||||
from calibre.utils.iso8601 import parse_iso8601
|
||||
|
||||
|
||||
module_version = 3 # needed for live updates
|
||||
module_version = 4 # needed for live updates
|
||||
pprint
|
||||
|
||||
|
||||
@ -93,9 +93,9 @@ def process_image_block(lines, block):
|
||||
if 'web.archive.org' in img:
|
||||
img = img.partition('/')[-1]
|
||||
img = img[img.find('https://'):]
|
||||
lines.append('<div style="text-align: center"><img src={}/>'.format(quoteattr(img)))
|
||||
lines.append('<div style="text-align: center"><div style="text-align: center"><img src={}/></div><div style="font-size: smaller">'.format(quoteattr(img)))
|
||||
lines.extend(caption_lines)
|
||||
lines.append('</div>')
|
||||
lines.append('</div></div>')
|
||||
|
||||
|
||||
def json_to_html(raw):
|
||||
|
Loading…
x
Reference in New Issue
Block a user