diff --git a/setup/installer/__init__.py b/setup/installer/__init__.py index b976c4d448..23c68b7b8c 100644 --- a/setup/installer/__init__.py +++ b/setup/installer/__init__.py @@ -11,7 +11,7 @@ import subprocess, tempfile, os, time from setup import Command, installer_name from setup.build_environment import HOST, PROJECT -BASE_RSYNC = 'rsync -avz --delete'.split() +BASE_RSYNC = ['rsync', '-e', 'ssh -x', '-avz', '--delete'] EXCLUDES = [] for x in [ 'src/calibre/plugins', 'src/calibre/manual', 'src/calibre/trac', diff --git a/src/calibre/ebooks/metadata/toc.py b/src/calibre/ebooks/metadata/toc.py index 0ed527d26a..10d45186de 100644 --- a/src/calibre/ebooks/metadata/toc.py +++ b/src/calibre/ebooks/metadata/toc.py @@ -182,6 +182,7 @@ class TOC(list): except: play_order = 1 href = fragment = text = None + nd = dest nl = nl_path(np) if nl: nl = nl[0] @@ -190,17 +191,14 @@ class TOC(list): text += etree.tostring(txt, method='text', encoding=unicode, with_tail=False) content = content_path(np) - if not content or not text: - return - content = content[0] - src = get_attr(content, attr='src') - if src is None: - return - - purl = urlparse(unquote(content.get('src'))) - href, fragment = purl[2], purl[5] - nd = dest.add_item(href, fragment, text) - nd.play_order = play_order + if content and text: + content = content[0] + src = get_attr(content, attr='src') + if src: + purl = urlparse(unquote(content.get('src'))) + href, fragment = purl[2], purl[5] + nd = dest.add_item(href, fragment, text) + nd.play_order = play_order for c in np_path(np): process_navpoint(c, nd) diff --git a/src/calibre/gui2/actions/edit_metadata.py b/src/calibre/gui2/actions/edit_metadata.py index c46d77cd06..a1f6a6ba90 100644 --- a/src/calibre/gui2/actions/edit_metadata.py +++ b/src/calibre/gui2/actions/edit_metadata.py @@ -192,14 +192,15 @@ class EditMetadataAction(InterfaceAction): _('At least two books must be selected for merging'), show=True) dest_id, src_books, src_ids = self.books_to_merge(rows) + title = self.gui.library_view.model().db.title(dest_id, index_is_id=True) if safe_merge: if not confirm('
'+_(
'Book formats and metadata from the selected books '
- 'will be added to the first selected book. '
+ 'will be added to the first selected book (%s). '
'ISBN will not be merged.
'
'The second and subsequently selected books will not '
'be deleted or changed.
'
- 'Please confirm you want to proceed.')
+ 'Please confirm you want to proceed.')%title
+'
'+_(
'Book formats and metadata from the selected books will be merged '
- 'into the first selected book. '
+ 'into the first selected book (%s). '
'ISBN will not be merged.
'
'After merger the second and '
'subsequently selected books will be deleted.
'
'All book formats of the first selected book will be kept '
'and any duplicate formats in the second and subsequently selected books '
'will be permanently deleted from your computer.
'
- 'Are you sure you want to proceed?')
+ 'Are you sure you want to proceed?')%title
+'