mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Update New York Times Book Review
This commit is contained in:
parent
833ba43207
commit
b7db7cf446
@ -100,7 +100,7 @@ def process_image_block(lines, block, data):
|
|||||||
|
|
||||||
|
|
||||||
def json_to_html(raw):
|
def json_to_html(raw):
|
||||||
data = json.loads(raw)
|
data = json.loads(raw.replace(':undefined', ':null'))
|
||||||
data = data['initialState']
|
data = data['initialState']
|
||||||
article = next(iter(data.values()))
|
article = next(iter(data.values()))
|
||||||
body = data[article['sprinkledBody']['id']]
|
body = data[article['sprinkledBody']['id']]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user