diff --git a/calibre-plugin/plugin-defaults.ini b/calibre-plugin/plugin-defaults.ini index 5a953a6..d542eed 100644 --- a/calibre-plugin/plugin-defaults.ini +++ b/calibre-plugin/plugin-defaults.ini @@ -1045,13 +1045,8 @@ cover_exclusion_regexp:/res/css/bir.png cover_exclusion_regexp:/clear.png -add_to_extratags:,ForumFic - strip_chapter_numbers:false -# true, false, threadmarksonly -add_chapter_dates:false - add_to_extra_valid_entries:,titletags # '.NOREPL' tells the system to *not* apply title's # in/exclude/replace_metadata -- Only works on include_in_ lines. @@ -1066,9 +1061,6 @@ include_metadata_pre: titletags=~[\[\(] replace_metadata: -# remove 'Thread' and the next word, usually "Thread 2", "Thread -# four", "Thread iv", etc - title=>[-: ]*[Tt]hread [^ ]+[-: ]*=> # remove anything outside () or [] titletags=>^.*?([\(\[]([^\]\)]+)[\)\]]).*?$=>\1 # remove () [] @@ -1078,6 +1070,9 @@ replace_metadata: titletags=> x =>, # remove [] or () blocks and leading/trailing spaces title=> *[\(\[]([^\]\)]+)[\)\]] *=> +# remove 'Thread' and the next word, usually "Thread 2", "Thread +# four", "Thread iv", etc + title=>[-: ]*[Tt]hread [^ ]+[-: ]*=> extra_titlepage_entries: titletags @@ -1093,11 +1088,6 @@ description_limit:500 cover_exclusion_regexp:/clear.png -add_to_extratags:,ForumFic - -# true, false, threadmarksonly -add_chapter_dates:false - strip_chapter_numbers:false add_to_extra_valid_entries:,titletags @@ -1114,9 +1104,6 @@ include_metadata_pre: titletags=~[\[\(] replace_metadata: -# remove 'Thread' and the next word, usually "Thread 2", "Thread -# four", "Thread iv", etc - title=>[-: ]*[Tt]hread [^ ]+[-: ]*=> # remove anything outside () or [] titletags=>^.*?([\(\[]([^\]\)]+)[\)\]]).*?$=>\1 # remove () [] @@ -1126,6 +1113,9 @@ replace_metadata: titletags=> x =>, # remove [] or () blocks and leading/trailing spaces title=> *[\(\[]([^\]\)]+)[\)\]] *=> +# remove 'Thread' and the next word, usually "Thread 2", "Thread +# four", "Thread iv", etc + title=>[-: ]*[Tt]hread [^ ]+[-: ]*=> extra_titlepage_entries: titletags diff --git a/fanficfare/adapters/adapter_forumsspacebattlescom.py b/fanficfare/adapters/adapter_forumsspacebattlescom.py index 43fd525..839c2cd 100644 --- a/fanficfare/adapters/adapter_forumsspacebattlescom.py +++ b/fanficfare/adapters/adapter_forumsspacebattlescom.py @@ -146,6 +146,9 @@ class ForumsSpacebattlesComAdapter(BaseSiteAdapter): for iframe in bq.find_all('iframe'): iframe.extract() # calibre book reader & editor don't like iframes to youtube. + for qdiv in bq.find_all('div',{'class':'quoteExpand'}): + qdiv.extract() # Remove