mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-07 18:24:30 -04:00
Merge branch 'master' of https://github.com/unkn0w7n/calibre
This commit is contained in:
commit
ecf9f7b4cb
@ -12,7 +12,6 @@ from html5_parser import parse
|
||||
from lxml import etree
|
||||
|
||||
from calibre import replace_entities
|
||||
from calibre.ebooks.BeautifulSoup import BeautifulSoup
|
||||
from calibre.web.feeds.news import BasicNewsRecipe, classes
|
||||
|
||||
|
||||
@ -160,6 +159,7 @@ class SCMP(BasicNewsRecipe):
|
||||
try:
|
||||
load_article_from_json(script[0].text, b_root)
|
||||
except Exception:
|
||||
self.log('** Failed parse: ', url)
|
||||
return raw_html
|
||||
head = b_root.xpath('//h2') + b_root.xpath('//h3')
|
||||
for h2 in head:
|
||||
|
Loading…
x
Reference in New Issue
Block a user