Posts: 26,215
Joined: Oct 2003
Reputation:
187
You'll need to escape the "-" in the regexp most likely.
Posts: 2
Joined: Mar 2012
Reputation:
0
2012-04-01, 17:21
(This post was last modified: 2012-04-01, 17:21 by isso.)
I've tried that and it makes no difference.
Posts: 26,215
Joined: Oct 2003
Reputation:
187
Exactly what did you try?
Posts: 1,052
Joined: Jul 2011
Reputation:
89
scudlee
Retired Team-Kodi Member
Posts: 1,052
2012-04-02, 10:20
(This post was last modified: 2012-04-02, 10:23 by scudlee.)
Did you actually try the code you posted? I notice from the debug log that it looks instead like you added the regexp to the code from the sticky thread. I think that this might in fact be the source of the problem. That code has two blocks of <tvshowmatching>, one prepended, one appended, but I can't see where in the source code this is allowed for (only the "FirstChildElement" is used). I tested it fairly vigorously on some simple cases and couldn't get it to work (I even patched the code so it would work, just to compare results). Which is all a bit odd, given the length of time that sticky has been around, you'd feel someone would have pointed it out before, so maybe I'm wrong.
Short answer: Try moving the regexp to the prepended block and see if it works, I don't think the appended one is being used. (Alternatively, remove the prepended block if you don't actually need it.)
Posts: 1
Joined: Apr 2012
Reputation:
0
If you are sick of messing with code there is an easy way. DL TV Renamer. add the show you are trying to rename in the my shows tab. In the TV Show folder on your computer just type for each episode the season and episode number (i.e. 101 for season 1 episode 1) In TV Renamer click scan and point to the folder with the episodes in it and then click Do Checked after the scan at the bottom to rename them all. You can modify parameters for renaming in TV Renamer just follow the guide. Then all the episodes will be scrubbed by xbmc no problem.