I'm not sure if this is the best place for this but, I couldn't get one of the scripts to work on the site wiki for sorting Video files by name/season/episode so I altered the code slightly if anyone was having problems getting it to work. Basically I added a couple of regex for checking other patterns in the title name as well as preserved case. I alos could not for the life of me find out what |>, meant (I'm assuming it was just a join of some sort for the next line but it kept erroring on me).
Anyway ... I created a single file with the original against my changes and just made a patch of that so if you want the changes either manually put them in, or create a new file with the code on the site and patch it using the patch file :)
- var chain = new Array('Video', 'TV Shows');
+ var chain = new Array('Videos', 'Sorted TV Shows');
var paddedSeason = 'Season ' + padLeft(season, '0', 2);
@@ -77,7 +81,7 @@
name = removeStartingDashesAndSpaces(name);
name = removeEndingDashesAndSpaces(name);
Posted a link to this on the mediatomb.cc wiki page that had the script examples. I also had the same problem and was trying to figure it out what the |> could possibly be. I fixed up the regexes according to the patch and everything works fine now.