From aaceecef99e43b1d3f90b42a7d7e139bda657346 Mon Sep 17 00:00:00 2001 From: Jim Miller Date: Tue, 19 Nov 2019 13:17:35 -0600 Subject: [PATCH] Fix AO3 chapterstotal replace_metadata for multi digits. --- calibre-plugin/plugin-defaults.ini | 2 +- fanficfare/defaults.ini | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/calibre-plugin/plugin-defaults.ini b/calibre-plugin/plugin-defaults.ini index 3d002c54..d3244713 100644 --- a/calibre-plugin/plugin-defaults.ini +++ b/calibre-plugin/plugin-defaults.ini @@ -1239,7 +1239,7 @@ include_in_freefromtags:freeformtags ## chapterstotal is just the total chapters part after the / include_in_chapterstotal:chapterslashtotal.NOREPL add_to_replace_metadata: - chapterstotal=>^([0-9])/(.+)$=>\2 + chapterstotal=>^([0-9])+/(.+)$=>\2 ## adds to titlepage_entries instead of replacing it. #extra_titlepage_entries: fandoms,freeformtags,ao3categories,comments,chapterslashtotal,chapterstotal,kudos,hits,bookmarks,bookmarked,bookmarktags,bookmarksummary,series01HTML,series02HTML,series03HTML,byline diff --git a/fanficfare/defaults.ini b/fanficfare/defaults.ini index f98c1e74..907f42f9 100644 --- a/fanficfare/defaults.ini +++ b/fanficfare/defaults.ini @@ -1275,7 +1275,7 @@ include_in_freefromtags:freeformtags ## chapterstotal is just the total chapters part after the / include_in_chapterstotal:chapterslashtotal.NOREPL add_to_replace_metadata: - chapterstotal=>^([0-9])/(.+)$=>\2 + chapterstotal=>^([0-9])+/(.+)$=>\2 ## adds to titlepage_entries instead of replacing it. #extra_titlepage_entries: fandoms,freeformtags,ao3categories,comments,chapterslashtotal,chapterstotal,kudos,hits,bookmarks,bookmarked,bookmarktags,bookmarksummary,series01HTML,series02HTML,series03HTML,byline