Having problems with String Replacements (1 Viewer)

nerd1701

Portal Member
September 4, 2007
48
2
I'm having a bit of an issue with String Replacements.

It doesn't seem to be doing the string replacements before doing the parse. I've got the box checked, but it just doesn't seem to be working.

Example:

DS9-1x10-title.avi

I want to replace DS9 with Star Trek: Deep Space Nine

However, the string replacement doesn't seem to be working. I did a full log and I don't see where it's happening

Any ideas here?

Thanks,
Doug
 

nerd1701

Portal Member
September 4, 2007
48
2
Problem solved - BUG

Ok, I found the solution. There is a little bug in the string replacement algorithm.

During the compilation of the replacements, it sets the replacement strings to lowercase. Unfortunately, it does not do the same with the filenames before parsing. Thus, it does not replace the uppercase strings in the filename.

The solution is to either remove the "ToLower" function when compiling the replacement list or add "ToLower" to the filename parsing.

Doug
 

andreas121

Portal Member
February 9, 2007
25
0
I think there may be some more bits broken than just that. I can't seem to get any replacements going.
Ideally i want anything within square brackets to be ignored. I may jump into the code and see whats going on.
 

Users who are viewing this thread


Write your reply...
Top Bottom