Help Tracking Down a Few Annoying Script Issues
Posted: 20 Jan 2019, 10:57
Hey there folks.
I've been running Filebot for quite some time now, and with the help of the community here I've managed to have an almost automated system going, with a few daily hiccups though. I'm not sure if those issues are related to Filebots scraping or general features and I'm just not using them right. Please have a look at my script and let me know if you spot any glaring issues that should be solved.
The issues I'm having are as follows:
1. 9 out of 10 downloaded movie will go into the 'Unsorted' dir. I suspect this has to do with the way I handle the 7 day timeout of TV episodes, but for some reason it just doesn't work well with movies.
2. Sometimes when downloading a movie Filebot will mistake it for a TV show, something of a similar name, and then create a new folder under TV Shows. Then I have to delete that, then find the movie under the download folder and move it into Movies in its proper folder. I find it odd this is happening, as movies don't ever include a S00E00 naming scheme, why would it mistake it for a TV show in the first place?
3. TV episodes being renamed to the most released episode number, within the same TV show. Example: I download an entire season, let's say 10 episodes of the same show but in 10 different torrents. If episode 10 was just released within that 7 day window, Filebot will rename all the first 9 episodes to S0XE10 until it fails because it keep trying to create a file with the same filename, and then an email pops up with "Failure", but no details at all. However this does not happen if I download an entire season of a show within the same torrent, lets say 10 episodes again. Filebot will correctly find the show and rename the episodes properly, or sometimes just dump them all unnamed into 'Unsorted'.
I hope someone has a keen eye and able to spot if I made some mistakes in the script, thanks
I've been running Filebot for quite some time now, and with the help of the community here I've managed to have an almost automated system going, with a few daily hiccups though. I'm not sure if those issues are related to Filebots scraping or general features and I'm just not using them right. Please have a look at my script and let me know if you spot any glaring issues that should be solved.
The issues I'm having are as follows:
1. 9 out of 10 downloaded movie will go into the 'Unsorted' dir. I suspect this has to do with the way I handle the 7 day timeout of TV episodes, but for some reason it just doesn't work well with movies.
2. Sometimes when downloading a movie Filebot will mistake it for a TV show, something of a similar name, and then create a new folder under TV Shows. Then I have to delete that, then find the movie under the download folder and move it into Movies in its proper folder. I find it odd this is happening, as movies don't ever include a S00E00 naming scheme, why would it mistake it for a TV show in the first place?
3. TV episodes being renamed to the most released episode number, within the same TV show. Example: I download an entire season, let's say 10 episodes of the same show but in 10 different torrents. If episode 10 was just released within that 7 day window, Filebot will rename all the first 9 episodes to S0XE10 until it fails because it keep trying to create a file with the same filename, and then an email pops up with "Failure", but no details at all. However this does not happen if I download an entire season of a show within the same torrent, lets say 10 episodes again. Filebot will correctly find the show and rename the episodes properly, or sometimes just dump them all unnamed into 'Unsorted'.
I hope someone has a keen eye and able to spot if I made some mistakes in the script, thanks

Code: Select all
cmd /c START /MIN cmd /c filebot.exe -script fn:amc --output "F:/Downloads" --action copy --conflict skip -non-strict "F:/!torrent" --log-file "F:/Downloads/amc.log" --def excludeList=amc.txt --def movieFormat="{genres.contains(/Documentary/) ? 'D:/Docus/' : 'E:/Movies/'}/{plex.name}/{plex.name}{'.'+vf}{'.'+vc}{'.'+ac}{'-'+group}" seriesFormat="{genres.contains(/Documentary/) ? 'D:/Docus/' : 'D:/TV Shows/'}{plex.tail}{'.'+source}{'.'+vf}{'.'+vc}{'.'+ac}{'-'+group}" animeFormat="D:/TV Shows/'}{plex.tail}{'.'+source}{'.'+vf}{'.'+vc}{'.'+ac}{'-'+group}" musicFormat="D:/Musik/{albumartist}/{album}/{t}" unsorted=y music=y extractFolder="F:/Downloads/Unsorted" artwork=n deleteAfterExtract=y clean=y reportError=y gmail=xxxxxx:xxxxxx --filter "age < 7 || !model.any{ it.age < 7 }" --def "ut_label=TV"