From d633f70ce7e5ab1c35e03c102728042d3db4c843 Mon Sep 17 00:00:00 2001 From: Jim Miller Date: Tue, 14 Jul 2015 13:27:22 -0500 Subject: [PATCH] Tweak forums title replace_metadata --- calibre-plugin/plugin-defaults.ini | 4 ++-- fanficfare/defaults.ini | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/calibre-plugin/plugin-defaults.ini b/calibre-plugin/plugin-defaults.ini index ca9edb24..7252f857 100644 --- a/calibre-plugin/plugin-defaults.ini +++ b/calibre-plugin/plugin-defaults.ini @@ -396,8 +396,8 @@ add_to_replace_metadata: tagsfromtitle=> */ *=>, tagsfromtitle=> x =>, -# remove [] or () blocks and leading/trailing spaces - title=> *[\(\[]([^\]\)]+)[\)\]] *=> +# remove [] or () blocks and leading/trailing spaces/dashes/colons + title=>[-: ]*[\(\[]([^\]\)]+)[\)\]][-: ]*=> # remove 'Thread' and the next word, usually "Thread 2", "Thread # four", "Thread iv", etc title=>[-: ]*[Tt]hread [^ ]+[-: ]*=> diff --git a/fanficfare/defaults.ini b/fanficfare/defaults.ini index ab2a6626..9f66a257 100644 --- a/fanficfare/defaults.ini +++ b/fanficfare/defaults.ini @@ -393,8 +393,8 @@ add_to_replace_metadata: tagsfromtitle=> */ *=>, tagsfromtitle=> x =>, -# remove [] or () blocks and leading/trailing spaces - title=> *[\(\[]([^\]\)]+)[\)\]] *=> +# remove [] or () blocks and leading/trailing spaces/dashes/colons + title=>[-: ]*[\(\[]([^\]\)]+)[\)\]][-: ]*=> # remove 'Thread' and the next word, usually "Thread 2", "Thread # four", "Thread iv", etc title=>[-: ]*[Tt]hread [^ ]+[-: ]*=>