v18 Track naming template issue
#1
The post editor always escape the characters in my post, so I take a screenshot for the issue.

Image
Reply
#2
(2017-11-25, 16:31)xodi Wrote: The post editor always escape the characters in my post, so I take a screenshot for the issue.
  
Not sure if this ever worked (or when it last worked). It seems like the code that parses the format string is in LabelFormatter.cpp and
the method in there AssembleMask. It has some regex that is applied that I need to further check, but I think the intent is you need to escape those format codes with %[, %], and %% where used so they get passed through, not interpreted, though when I tried that it didn't work either:
Code:
[%[I%]%A%[/I%]]

so I guess it's a bug.

FWIW the regex is:
Code:
reg.RegComp("(^|[^%])\\[(([^%]|%%|%\\]|%\\[)*)%([" MASK_CHARS "])(([^%]|%%|%\\]|%\\[)*)\\]");

scott s.
.
Reply
#3
I looked at the regex pattern in that expression and don't see how it can work right.  Granted, my regex ability is limited.

I tried this:
Code:
(^|[^%])\[(([^%]|%%|%\]|%\[)*)%([NSATBGYFLDIJRCKMEPHZOQUVXWacdiprstuv])(([^%]|%%|%\]|%\[)*)\]
which seemed to get me closer, but still not there.

scott s.
.
Reply
#4
It has been reported.
My Signature
Links to : Official:Forum rules (wiki) | Official:Forum rules/Banned add-ons (wiki) | Debug Log (wiki)
Links to : HOW-TO:Create Music Library (wiki) | HOW-TO:Create_Video_Library (wiki)  ||  Artwork (wiki) | Basic controls (wiki) | Import-export library (wiki) | Movie sets (wiki) | Movie universe (wiki) | NFO files (wiki) | Quick start guide (wiki)
Reply
#5
This issue is still not fixed at the latest nightly build.
Reply
#6
I think of a hypothesis that the program you are running is faulty, you can upgrade to a new version or patch
Reply

Logout Mark Read Team Forum Stats Members Help
Track naming template issue0