mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-08 20:14:33 +02: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
1 changed files with 1 additions and 1 deletions
|
|
@ -18,7 +18,7 @@ def __init__(self, id, title, url, author, summary, published, content):
|
|||
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…
Reference in a new issue