From 197c6dde819d153cdad3e8f98efb64ccefcc510a Mon Sep 17 00:00:00 2001 From: Jim Miller Date: Tue, 18 Jan 2022 10:54:03 -0600 Subject: [PATCH] Extend base_xenforoforum tagsfromtitle for ')(' '][' --- calibre-plugin/plugin-defaults.ini | 3 +++ fanficfare/defaults.ini | 3 +++ 2 files changed, 6 insertions(+) diff --git a/calibre-plugin/plugin-defaults.ini b/calibre-plugin/plugin-defaults.ini index ac217e44..f39425a8 100644 --- a/calibre-plugin/plugin-defaults.ini +++ b/calibre-plugin/plugin-defaults.ini @@ -712,6 +712,9 @@ add_to_replace_metadata: # previous version's include_metadata_pre Can't do on tagsfromtitle # because that's applied to each part after split. tagsfromtitledetect=>^[^\]\)]+$=> +# change ][ and )( to , for [AU][Othertag] etc + tagsfromtitle=>\] *\[=>, + tagsfromtitle=>\) *\(=>, # for QuestionableQuesting NSFW subforum. tagsfromtitle=>^\[NSFW\].*?((?P
\[)|(?P\())(?P(?(br)[^\]]|(?(pr)[^\)]))+)(?(br)\]|(?(pr)\))).*?$=>NSFW\,\g # remove anything outside () or []. Note \, at the end used to diff --git a/fanficfare/defaults.ini b/fanficfare/defaults.ini index 594aa340..05e0ad73 100644 --- a/fanficfare/defaults.ini +++ b/fanficfare/defaults.ini @@ -730,6 +730,9 @@ add_to_replace_metadata: # previous version's include_metadata_pre Can't do on tagsfromtitle # because that's applied to each part after split. tagsfromtitledetect=>^[^\]\)]+$=> +# change ][ and )( to , for [AU][Othertag] etc + tagsfromtitle=>\] *\[=>, + tagsfromtitle=>\) *\(=>, # for QuestionableQuesting NSFW subforum. tagsfromtitle=>^\[NSFW\].*?((?P
\[)|(?P\())(?P(?(br)[^\]]|(?(pr)[^\)]))+)(?(br)\]|(?(pr)\))).*?$=>NSFW\,\g # remove anything outside () or []. Note \, at the end used to