Plugin Developer
Posts: 7,039
Karma: 4604637
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
|
Quote:
Originally Posted by Ian.M
Since upgrading to FanFicFare version 4.9.0, I'm getting 'Unmatched group' errors on all SufficientVeocity and SpaceBattles fics I try to update. Here are two examples:
|
I'm glad you included the debug log. It showed you are using Calibre 4.23 and this is a py2 vs py3 issue with regular expression handling.
A recent change to better handle 'tags' in thread titles on XenForo sites works in py3, but not py2.
Here's a stackoverflow question about it.
I've opened an issue and it will be addressed, but I want to give the hseg a chance at it first.
In the meantime, you (Ian.M) could: - Continue to use the previous FFF version
- Switch to Calibre 5 and the latest FFF
- Reinstate the previous tagstitle handling in your personal.ini. Spoiler below.
Since you said you don't already have a [base_xenforoforum], it should be pretty easy to just put this in your personal.ini.
Spoiler:
Code:
[base_xenforoforum]
add_to_replace_metadata:
# 'detects' if there are 'tags'. That is, [( in title. Replaces
# previous version's include_metadata_pre Can't do on tagsfromtitle
# because that's applied to each part after split.
tagsfromtitledetect=>^[^\]\)]+$=>
# for QuestionableQuesting NSFW subforum.
## tagsfromtitle=>^\[NSFW\].*?(\[([^\]]+)\]|\(([^\)]+)\)).*?$=>NSFW\,\2\,\3
tagsfromtitle=>^\[NSFW\].*?([\(\[]([^\]\)]+)[\)\]]).*?$=>NSFW,\2
# remove anything outside () or []
## tagsfromtitle=>^.*?(\[([^\]]+)\]|\(([^\)]+)\)).*?$=>\2\,\3
tagsfromtitle=>^.*?([\(\[]([^\]\)]+)[\)\]]).*?$=>\2
# remove () []
# tagsfromtitle=>[\(\)\[\]]=>
# shield these html entities from the ';' pattern below
tagsfromtitle=>&(amp|lt|gt);=>&\1FFF_ENT_MARKER
# change (spaces)slash(or semicolon, pipe or comma)(spaces) to comma
tagsfromtitle=> *[/;|,] *=>,
# revert html entities
tagsfromtitle=>&(amp|lt|gt)FFF_ENT_MARKER=>&\1;
tagsfromtitle=> [xX] =>,
# split commas into individual list items.
# these will work on up to 14 splits, should be plenty.
tagsfromtitle=>([^,]+),([^,]+),([^,]+),([^,]+),([^,]+),(.+)=>\1\,\2\,\3,\4\,\5\,\6
tagsfromtitle=>([^,]+),([^,]+),([^,]+),([^,]+),(.+)=>\1\,\2\,\3,\4\,\5
tagsfromtitle=>([^,]+),([^,]+),([^,]+),(.+)=>\1\,\2\,\3,\4
tagsfromtitle=>([^,]+),([^,]+),(.+)=>\1\,\2\,\3
tagsfromtitle=>([^,]+),(.+)=>\1\,\2
# remove [] or () blocks and leading/trailing spaces/dashes/colons
## title=>[-: ]*[\(\[]([^\]\)]+)[\)\]][-: ]*=>
title=>[-: ]*(\[([^\]]+)\]|\(([^\)]+)\))[-: ]*=>
# remove 'Thread' and the next word, usually "Thread 2", "Thread
# four", "Thread iv", "Story Thread", etc
title,tagsfromtitle=>[-: ,]*(Story *)?[Tt]hread [^ ]+[-: ]*=>
# Normalize 'fanfiction/fanfic/fan-fiction' a little.
forumtags=>[Ff]an-?[Ff]ic(tion)?=>FanFiction
|