View Single Post
Old 05-29-2020, 02:50 PM   #4134
JimmXinu
Plugin Developer
JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.
 
JimmXinu's Avatar
 
Posts: 7,024
Karma: 4604635
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
Quote:
Originally Posted by ILB View Post
Enclosed the debug log.
Relevant parts:
Code:
FFF: ERROR: 2020-05-29 17:50:14,265: calibre_plugins.fanficfare_plugin.fanficfare.story(633): Exception with replacement line,value:(category=>^(.*Football RPF.*)$=>Fußball RPF | Football RPF\),(Fußball RPF | Football RPF)
...
  File "calibre_plugins.fanficfare_plugin.fanficfare.story", line 630, in doReplacements
  File "re.py", line 286, in _subx
  File "re.py", line 273, in _compile_repl
error: bogus escape (end of line)
Searching for that error yields this: "bogus escape (end of line)" means that your pattern ends with a backslash.

And apparently it also applies to the replacement pattern, since this is the line causing it:
category=>^(.*Football RPF.*)$=>Fußball RPF | Football RPF\

So take off that trailing \ and it should be fine.

FYI, FFF checks the regexp part when you saving personal.ini, so it alerts you to that problem in the regexp, but not the replacement pattern.
JimmXinu is offline   Reply With Quote