diff --git a/src/calibre/ebooks/metadata/__init__.py b/src/calibre/ebooks/metadata/__init__.py index 856133d1ce..c7d667c831 100644 --- a/src/calibre/ebooks/metadata/__init__.py +++ b/src/calibre/ebooks/metadata/__init__.py @@ -22,7 +22,7 @@ def string_to_authors(raw): def authors_to_string(authors): if authors is not None: - return ' & '.join([a.replace('&', '&&') for a in authors]) + return ' & '.join([a.replace('&', '&&') for a in authors if a]) else: return '' diff --git a/src/calibre/ebooks/metadata/meta.py b/src/calibre/ebooks/metadata/meta.py index a65d55a63d..d8116b33d3 100644 --- a/src/calibre/ebooks/metadata/meta.py +++ b/src/calibre/ebooks/metadata/meta.py @@ -78,7 +78,7 @@ def get_metadata(stream, stream_type='lrf', use_libprs_metadata=False): # The regex is meant to match the standard format filenames are written # in: title_-_author_number.extension base.smart_update(metadata_from_filename(name, re.compile( - '^(?P
%s support is still in beta. If you find bugs, please report them by opening a ticket.'%of).exec_() - prefs.set('output_format', of) - self.connect(self.output_format, SIGNAL('currentIndexChanged(QString)'), - change_output_format) + self.change_output_format, Qt.QueuedConnection) ####################### Vanity ######################## self.vanity_template = _('
For help visit %s.kovidgoyal.net
')%(__appname__, __appname__)
@@ -376,6 +368,15 @@ class Main(MainWindow, Ui_MainWindow):
self.action_news.setMenu(self.scheduler.news_menu)
self.connect(self.action_news, SIGNAL('triggered(bool)'), self.scheduler.show_dialog)
self.location_view.setCurrentIndex(self.location_view.model().index(0))
+
+ def change_output_format(self, x):
+ of = unicode(x).strip()
+ if of != prefs['output_format']:
+ if of not in ('LRF',):
+ warning_dialog(self, 'Warning',
+ '
%s support is still in beta. If you find bugs, please report them by opening a ticket.'%of).exec_() + prefs.set('output_format', of) + def test_server(self, *args): if self.content_server.exception is not None: diff --git a/src/calibre/web/feeds/recipes/recipe_faznet.py b/src/calibre/web/feeds/recipes/recipe_faznet.py index 0bd4a38d14..5efe7ec9e6 100644 --- a/src/calibre/web/feeds/recipes/recipe_faznet.py +++ b/src/calibre/web/feeds/recipes/recipe_faznet.py @@ -11,7 +11,7 @@ class FazNet(BasicNewsRecipe): title = 'FAZ NET' __author__ = 'Kovid Goyal' - description = 'News from Germany' + description = '"Frankfurter Allgemeine Zeitung' use_embedded_content = False max_articles_per_feed = 30 diff --git a/src/calibre/web/feeds/recipes/recipe_spiegelde.py b/src/calibre/web/feeds/recipes/recipe_spiegelde.py index fe4de53364..f13c76639a 100644 --- a/src/calibre/web/feeds/recipes/recipe_spiegelde.py +++ b/src/calibre/web/feeds/recipes/recipe_spiegelde.py @@ -13,7 +13,7 @@ from calibre.web.feeds.news import BasicNewsRecipe class SpeigelOnline(BasicNewsRecipe): title = 'Spiegel Online' - description = 'News from Germany' + description = 'Nachrichten des Magazins Der Spiegel' __author__ = 'Kovid Goyal' use_embedded_content = False timefmt = ' [ %Y-%m-%d %a]' diff --git a/src/calibre/web/feeds/recipes/recipe_zeitde.py b/src/calibre/web/feeds/recipes/recipe_zeitde.py index 892d748465..c37a487153 100644 --- a/src/calibre/web/feeds/recipes/recipe_zeitde.py +++ b/src/calibre/web/feeds/recipes/recipe_zeitde.py @@ -11,7 +11,7 @@ from calibre.web.feeds.news import BasicNewsRecipe class ZeitDe(BasicNewsRecipe): title = 'Die Zeit Nachrichten' - description = 'News from Germany' + description = 'Die Zeit - Online Nachrichten' __author__ = 'Kovid Goyal' use_embedded_content = False timefmt = ' [%d %b %Y]' diff --git a/src/calibre/web/fetch/simple.py b/src/calibre/web/fetch/simple.py index 8d6301ada4..8dee540e01 100644 --- a/src/calibre/web/fetch/simple.py +++ b/src/calibre/web/fetch/simple.py @@ -407,6 +407,7 @@ class RecursiveFetcher(object, LoggingInterface): if not isinstance(_fname, unicode): _fname.decode('latin1', 'replace') _fname = _fname.encode('ascii', 'replace').replace('%', '').replace(os.sep, '') + _fname = sanitize_file_name(_fname) res = os.path.join(linkdiskpath, _fname) self.downloaded_paths.append(res) self.filemap[nurl] = res