This commit is contained in:
Kovid Goyal 2023-09-05 18:29:49 +05:30
parent c7c7b08633
commit d145c8ce36
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -3,7 +3,6 @@
from __future__ import absolute_import, division, print_function, unicode_literals
import json
from pprint import pformat
from calibre.web.feeds.news import BasicNewsRecipe
from calibre import prepare_string_for_xml as escape
@ -47,7 +46,7 @@ def parse_body(item):
c = item['cntnt']
if item.get('type') == 'inline':
if c.get('cmsType') == 'listicle':
if 'title' in c:
if 'title' in c:
yield '<h3>' + escape(c['title']) + "</h3>"
yield c['text']
elif c.get('cmsType') == 'image':