From 37a084a699fd31a6a8f581ae1ec88a5d3e4a166b Mon Sep 17 00:00:00 2001 From: Jim Miller Date: Tue, 29 Sep 2015 13:15:32 -0500 Subject: [PATCH] Fix QQ [NSFW] tagsfromtitle. --- calibre-plugin/plugin-defaults.ini | 11 ++++++++--- fanficfare/defaults.ini | 11 ++++++++--- 2 files changed, 16 insertions(+), 6 deletions(-) diff --git a/calibre-plugin/plugin-defaults.ini b/calibre-plugin/plugin-defaults.ini index ade454c..3420e77 100644 --- a/calibre-plugin/plugin-defaults.ini +++ b/calibre-plugin/plugin-defaults.ini @@ -392,12 +392,17 @@ forumtags_label:Tags from Forum add_to_include_metadata_pre: # only keep tagsfromtitle with ( or [ in. tagsfromtitle=~[\[\(] - + +## disable chapter range in title because of tagsfromtitle processing. +title_chapter_range_pattern: + add_to_replace_metadata: +# for QuestionableQuesting NSFW subforum. + tagsfromtitle=>^\[NSFW\].*?([\(\[]([^\]\)]+)[\)\]]).*?$=>NSFW,\2 # remove anything outside () or [] - tagsfromtitle=>^.*?([\(\[]([^\]\)]+)[\)\]]).*?$=>\1 + tagsfromtitle=>^.*?([\(\[]([^\]\)]+)[\)\]]).*?$=>\2 # remove () [] - tagsfromtitle=>[\(\)\[\]]=> +# tagsfromtitle=>[\(\)\[\]]=> # change (spaces)slash(or semicolon)(spaces) to comma tagsfromtitle=> *[/;] *=>, tagsfromtitle=> [xX] =>, diff --git a/fanficfare/defaults.ini b/fanficfare/defaults.ini index e1bb28e..a520cd7 100644 --- a/fanficfare/defaults.ini +++ b/fanficfare/defaults.ini @@ -391,12 +391,17 @@ forumtags_label:Tags from Forum add_to_include_metadata_pre: # only keep tagsfromtitle with ( or [ in. tagsfromtitle=~[\[\(] - + +## disable chapter range in title because of tagsfromtitle processing. +title_chapter_range_pattern: + add_to_replace_metadata: +# for QuestionableQuesting NSFW subforum. + tagsfromtitle=>^\[NSFW\].*?([\(\[]([^\]\)]+)[\)\]]).*?$=>NSFW,\2 # remove anything outside () or [] - tagsfromtitle=>^.*?([\(\[]([^\]\)]+)[\)\]]).*?$=>\1 + tagsfromtitle=>^.*?([\(\[]([^\]\)]+)[\)\]]).*?$=>\2 # remove () [] - tagsfromtitle=>[\(\)\[\]]=> +# tagsfromtitle=>[\(\)\[\]]=> # change (spaces)slash(or semicolon)(spaces) to comma tagsfromtitle=> *[/;] *=>, tagsfromtitle=> [xX] =>,