mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix #1595261 [Exception due to missing article title](https://bugs.launchpad.net/calibre/+bug/1595261)
This commit is contained in:
parent
0692c4a3fb
commit
8603fd5d5f
@ -18,7 +18,7 @@ class Article(object):
|
||||
from lxml import html
|
||||
self.downloaded = False
|
||||
self.id = id
|
||||
self._title = title.strip() if title else title
|
||||
self._title = (title or _('Unknown')).strip()
|
||||
try:
|
||||
self._title = re.sub(r'&(\S+?);',
|
||||
entity_to_unicode, self._title)
|
||||
|
Loading…
x
Reference in New Issue
Block a user