From 2642a35009e5e99fcca22ab834eb6f03d18e815c Mon Sep 17 00:00:00 2001 From: Jim Miller Date: Mon, 27 Apr 2020 12:26:21 -0500 Subject: [PATCH] Comment out a debug, user_agent for wuxiaworld.com --- calibre-plugin/plugin-defaults.ini | 1 + fanficfare/adapters/adapter_wuxiaworldcom.py | 2 +- fanficfare/defaults.ini | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) 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.