Even though I'm a noob and not a programmer or know how to program I can still typically figure out problems like one. Since the Formula worked for you I checked to see if it worked for me. I was pretty sure it was not the formula I'm using since I also tried the formula on the other machine and it worked there too. I than believed it to be a setting/software that got screwed up somewhere so I uninstalled FileBot deleted all the settings I could find in /AppData/ that had any relation to FileBot than reinstalled. That didn't work so I uninstalled Java 32 and 64 and deleted all settings again and reinstalled 32 bit java and FileBot. It still did not work and I noticed that the format setting still had my formula. So there seemed to be a hidden setting somewhere that once is broken messes up everything else. I realized that it wasn't on my hard drive anywhere as a normal file so I took a look in the registry and I found my formula sitting there and other settings and history from 2011 under HKEY_CURRENT_USER\Software\JavaSoft
Here is my code and what is looks like from the registry.
My Code
Code: Select all
{file.path[0]}:/My Videos/TV Shows/{(n =~ /^[Tt]he / ? n[4..-1]+', The' : n =~ /^[Aa] / ? n[2..-1]+', A' : n).replace(':',' -').replaceTrailingBrackets()} [{startdate.format("yyyy")}]/{episode.special ? 'Season '+0 : 'Season '+s}/{(n =~ /^[Tt]he / ? n[4..-1]+', The' : n =~ /^[Aa] / ? n[2..-1]+', A' : n).replace(':',' -')} - {episode.special ? '0xSpecial '+special.pad(2) : s+'x'+e.pad(2)} - {episode.title.replacePart(', Part $1').replaceAll(/[!?.]+$/).replaceAll(/[`´‘’ʻ]/, "'") .lowerTrail()} {".CD$pi"}{if (ext == 'nfo' && folder.list().find{it =~ /(?i:CD\d+)/}) ".CD1"}
Registry Code
Code: Select all
{file.path[0]}:\/My /Videos\/T/V /Shows\{(n =~ \^[/Tt]he \ ? n[4..-1]+', /The' : n =~ \^[/Aa] \ ? n[2..-1]+', /A' : n).replace(':',' -').replace/Trailing/Brackets()} [{startdate.format("yyyy")}]\{episode.special ? '/Season '+0 : '/Season '+s}\{(n =~ \^[/Tt]he \ ? n[4..-1]+', /The' : n =~ \^[/Aa] \ ? n[2..-1]+', /A' : n).replace(':',' -')} - {episode.special ? '0x/Special '+special.pad(2) : s+'x'+e.pad(2)} - {episode.title.replace/Part(', /Part $1').replace/All(\[!?.]+$\).replace/All(\[`/u00b4/u2018/u2019/u02bb]\, "'") .lower/Trail()} {"./C/D$pi"}{if (ext == 'nfo' && folder.list().find{it =~ \(?i:/C/D//d+)\}) "./C/D1"}
After deleting those registry settings and reopening FileBot, the Format field was blank and I was once again able to get season information for all episodes. I did confirm one thing though the absolute episode number and/or IMDB number was in conjunction with a bad registry setting somewhere was messing up the season number.
It seems to me that having that information in the registry causes elements to become a bit volatile and bits of format code got messed up in the registry a bit like an SQL injection.
I did save the all the deleted registry settings if you want to look over them to see what is was that broke. Just let me know if you want to see them.