mirror of
git://github.com/kovidgoyal/calibre.git
synced 2025-12-06 10:05:38 +01:00
Update New York Times Book Review
This commit is contained in:
parent
833ba43207
commit
b7db7cf446
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Reference in a new issue