diff --git a/calibre-plugin/config.py b/calibre-plugin/config.py index 8e3d4dc6..50cfb3cd 100644 --- a/calibre-plugin/config.py +++ b/calibre-plugin/config.py @@ -435,7 +435,9 @@ class OtherTab(QWidget): and dynamic[key] is False: dynamic[key] = True info_dialog(self, _('Done'), - _('Confirmation dialogs have all been reset'), show=True) + _('Confirmation dialogs have all been reset'), + show=True, + show_copy_button=False) permitted_values = { 'int' : ['numWords','numChapters'], diff --git a/fanficdownloader/adapters/adapter_fanfictionnet.py b/fanficdownloader/adapters/adapter_fanfictionnet.py index aa50d420..f307b409 100644 --- a/fanficdownloader/adapters/adapter_fanfictionnet.py +++ b/fanficdownloader/adapters/adapter_fanfictionnet.py @@ -83,8 +83,9 @@ class FanFictionNetSiteAdapter(BaseSiteAdapter): if "Unable to locate story with id of " in data: raise exceptions.StoryDoesNotExist(url) - - if "Chapter not found. Please check to see you are not using an outdated url." in data: + + # some times "Chapter not found...", sometimes "Chapter text not found..." + if "not found. Please check to see you are not using an outdated url." in data: raise exceptions.FailedToDownload("Error downloading Chapter: %s! 'Chapter not found. Please check to see you are not using an outdated url.'" % url) try: @@ -102,7 +103,7 @@ class FanFictionNetSiteAdapter(BaseSiteAdapter): chapcount+1) print('=Trying newer chapter: %s' % tryurl) newdata = self._fetchUrl(tryurl) - if "Chapter not found. Please check to see you are not using an outdated url." \ + if "not found. Please check to see you are not using an outdated url." \ not in newdata: print('=======Found newer chapter: %s' % tryurl) soup = bs.BeautifulSoup(newdata)