diff --git a/calibre-plugin/__init__.py b/calibre-plugin/__init__.py index 34738cc..fd6fd1b 100644 --- a/calibre-plugin/__init__.py +++ b/calibre-plugin/__init__.py @@ -27,7 +27,7 @@ class FanFictionDownLoaderBase(InterfaceActionBase): description = 'UI plugin to download FanFiction stories from various sites.' supported_platforms = ['windows', 'osx', 'linux'] author = 'Jim Miller' - version = (1, 3, 3) + version = (1, 3, 4) minimum_calibre_version = (0, 8, 30) #: This field defines the GUI plugin class that contains all the code diff --git a/calibre-plugin/ffdl_plugin.py b/calibre-plugin/ffdl_plugin.py index bffd5d3..1a43c7d 100644 --- a/calibre-plugin/ffdl_plugin.py +++ b/calibre-plugin/ffdl_plugin.py @@ -119,6 +119,10 @@ class FanFictionDownLoaderPlugin(InterfaceAction): def about_to_show_menu(self): self.rebuild_menus() + def library_changed(self, db): + # We need to reset our menus after switching libraries + self.rebuild_menus() + def rebuild_menus(self): with self.menus_lock: # Show the config dialog diff --git a/fanficdownloader/adapters/adapter_ficwadcom.py b/fanficdownloader/adapters/adapter_ficwadcom.py index affd747..e556041 100644 --- a/fanficdownloader/adapters/adapter_ficwadcom.py +++ b/fanficdownloader/adapters/adapter_ficwadcom.py @@ -201,9 +201,6 @@ class FicwadComSiteAdapter(BaseSiteAdapter): def getChapterText(self, url): logging.debug('Getting chapter text from: %s' % url) - time.sleep(0.5) ## ffnet tends to fail more if hit too fast. - ## This is in additional to what ever the - ## slow_down_sleep_time setting is. soup = bs.BeautifulStoneSoup(self._fetchUrl(url), selfClosingTags=('br','hr')) # otherwise soup eats the br/hr tags.