Quote:
Originally Posted by Amalthia
I have a question about my "replace_metadata:" settings.
...
Code:
FFF: INFO: 2023-02-17 11:50:25,615: story.py(883): Skipping replace_metadata line 'fandoms=>(陈情令 \|\ The Untamed|魔道祖师 - 墨香铜臭 \|\ Módào Zǔshī - Mòxiāng Tóngxiù|魔道祖师 \|\ Módào Zǔshī)=>\1\,陈情令 | The Untamed' on fandoms to prevent infinite recursion.
Is there a better way to run my replace_metadata: without potentially causing an infinite recursion, or needing 4 lines of code?
|
You don't need to worry about an infinite recursion, the system is already preventing it. It's only an 'INFO' level message.
I believe what's happening is your "陈情令 | The Untamed" string is also matched by the pattern. I believe you could remove the "陈情令 \|\ The Untamed|" part of the pattern to prevent that INFO msg without hurting anything.