mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-01-06 06:55:34 +01:00
MOBI Output: Fix FAZ.NET feed conversion to MOBI
This commit is contained in:
parent
57246bfbac
commit
60f6686755
2 changed files with 1 additions and 8 deletions
|
|
@ -159,7 +159,7 @@ def __init__(self, tree, path, oeb, profile=PROFILES['PRS505']):
|
|||
for _, _, cssdict, text, _ in rules:
|
||||
try:
|
||||
selector = CSSSelector(text)
|
||||
except ExpressionError:
|
||||
except (AssertionError, ExpressionError, etree.XPathSyntaxError):
|
||||
continue
|
||||
for elem in selector(tree):
|
||||
self.style(elem)._update_cssdict(cssdict)
|
||||
|
|
|
|||
|
|
@ -6,13 +6,6 @@
|
|||
__license__ = 'GPL v3'
|
||||
__copyright__ = '2008, Marshall T. Vandegrift <llasram@gmail.com>'
|
||||
|
||||
import sys
|
||||
import os
|
||||
import re
|
||||
import operator
|
||||
import math
|
||||
from itertools import chain
|
||||
from collections import defaultdict
|
||||
from lxml import etree
|
||||
from calibre.ebooks.oeb.base import XHTML, XHTML_NS
|
||||
from calibre.ebooks.oeb.base import CSS_MIME
|
||||
|
|
|
|||
Loading…
Reference in a new issue