diff --git a/src/libprs500/linux.py b/src/libprs500/linux.py index fbb6e885ff..de6235c3b8 100644 --- a/src/libprs500/linux.py +++ b/src/libprs500/linux.py @@ -171,7 +171,7 @@ def setup_completion(fatal_errors): f.write(opts_and_exts('mobi2lrf', htmlop, ['mobi', 'prc'])) f.write(opts_and_exts('pdf2lrf', htmlop, ['pdf'])) f.write(opts_and_exts('any2lrf', htmlop, - ['epub', 'htm', 'html', 'xhtml', 'xhtm', 'rar', 'zip', 'txt', 'lit', 'rtf', 'pdf'])) + ['epub', 'htm', 'html', 'xhtml', 'xhtm', 'rar', 'zip', 'txt', 'lit', 'rtf', 'pdf', 'prc', 'mobi'])) f.write(opts_and_exts('lrf2lrs', lrf2lrsop, ['lrf'])) f.write(opts_and_exts('lrf-meta', metaop, ['lrf'])) f.write(opts_and_exts('rtf-meta', metaop, ['rtf'])) diff --git a/src/libprs500/web/feeds/recipes/newsweek.py b/src/libprs500/web/feeds/recipes/newsweek.py index 74f6a8236d..c5203a66da 100644 --- a/src/libprs500/web/feeds/recipes/newsweek.py +++ b/src/libprs500/web/feeds/recipes/newsweek.py @@ -59,7 +59,10 @@ class Newsweek(BasicNewsRecipe): def parse_index(self): - soup = self.index_to_soup(self.get_current_issue()) + ci = self.get_current_issue() + if not ci: + raise RuntimeError('Unable to connect to newsweek.com. Try again later.') + soup = self.index_to_soup(ci) img = soup.find(alt='Cover') if img is not None and img.has_key('src'): small = img['src']