diff --git a/calibre-plugin/plugin-defaults.ini b/calibre-plugin/plugin-defaults.ini index d921dd26..3328b945 100644 --- a/calibre-plugin/plugin-defaults.ini +++ b/calibre-plugin/plugin-defaults.ini @@ -3273,6 +3273,7 @@ extracategories:Stargate: Atlantis website_encodings:Windows-1252,utf8 [www.wuxiaworld.com] +user_agent:Mozilla/5.0 ## Authors on wuxiaworld.com create their own index pages, so it's not ## uncommon for there to be links to chapters that haven't been ## uploaded yet. diff --git a/fanficfare/adapters/adapter_wuxiaworldcom.py b/fanficfare/adapters/adapter_wuxiaworldcom.py index c01f3380..ea89cd74 100644 --- a/fanficfare/adapters/adapter_wuxiaworldcom.py +++ b/fanficfare/adapters/adapter_wuxiaworldcom.py @@ -88,7 +88,7 @@ class WuxiaWorldComSiteAdapter(BaseSiteAdapter): soup = self.make_soup(data) ld = self._parse_linked_data(soup) - logger.debug(ld) + # logger.debug(ld) author_name = ld['author']['name'] self.story.setMetadata('author', author_name) self.story.setMetadata('authorId', author_name.lower()) diff --git a/fanficfare/defaults.ini b/fanficfare/defaults.ini index 06bad009..d45d40fa 100644 --- a/fanficfare/defaults.ini +++ b/fanficfare/defaults.ini @@ -3297,6 +3297,7 @@ extracategories:Stargate: Atlantis website_encodings:Windows-1252,utf8 [www.wuxiaworld.com] +user_agent:Mozilla/5.0 ## Authors on wuxiaworld.com create their own index pages, so it's not ## uncommon for there to be links to chapters that haven't been ## uploaded yet.