mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
...
This commit is contained in:
parent
d7b1624ec6
commit
f098784f55
@ -59,6 +59,8 @@ class ConfigWidget(ConfigWidgetBase, Ui_Form):
|
|||||||
path = unicode(self.opt_auto_add_path.text()).strip()
|
path = unicode(self.opt_auto_add_path.text()).strip()
|
||||||
if path != gprefs['auto_add_path']:
|
if path != gprefs['auto_add_path']:
|
||||||
if path:
|
if path:
|
||||||
|
path = os.path.abspath(path)
|
||||||
|
self.opt_auto_add_path.setText(path)
|
||||||
if not os.path.isdir(path):
|
if not os.path.isdir(path):
|
||||||
error_dialog(self, _('Invalid folder'),
|
error_dialog(self, _('Invalid folder'),
|
||||||
_('You must specify an existing folder as your '
|
_('You must specify an existing folder as your '
|
||||||
|
@ -1398,7 +1398,7 @@ class BasicNewsRecipe(Recipe):
|
|||||||
article.sub_pages = result[1][1:]
|
article.sub_pages = result[1][1:]
|
||||||
self.jobs_done += 1
|
self.jobs_done += 1
|
||||||
self.report_progress(float(self.jobs_done)/len(self.jobs),
|
self.report_progress(float(self.jobs_done)/len(self.jobs),
|
||||||
_(u'Article downloaded: %s')%repr(article.title))
|
_(u'Article downloaded: %s')%force_unicode(article.title))
|
||||||
if result[2]:
|
if result[2]:
|
||||||
self.partial_failures.append((request.feed.title, article.title, article.url, result[2]))
|
self.partial_failures.append((request.feed.title, article.title, article.url, result[2]))
|
||||||
|
|
||||||
@ -1409,7 +1409,7 @@ class BasicNewsRecipe(Recipe):
|
|||||||
self.log.debug(traceback)
|
self.log.debug(traceback)
|
||||||
self.log.debug('\n')
|
self.log.debug('\n')
|
||||||
self.report_progress(float(self.jobs_done)/len(self.jobs),
|
self.report_progress(float(self.jobs_done)/len(self.jobs),
|
||||||
_('Article download failed: %s')%repr(request.article.title))
|
_('Article download failed: %s')%force_unicode(request.article.title))
|
||||||
self.failed_downloads.append((request.feed, request.article, traceback))
|
self.failed_downloads.append((request.feed, request.article, traceback))
|
||||||
|
|
||||||
def parse_feeds(self):
|
def parse_feeds(self):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user