Skip some folders using script - fn:suball

Running FileBot from the console, Groovy / FileBot scripting, shell scripts, etc
Post Reply
polux400
Posts: 10
Joined: 09 Sep 2012, 01:06

Skip some folders using script - fn:suball

Post by polux400 » 08 Jan 2013, 20:49

Hello there,

Thanks to Rednoah's help, i'm now running daily a script to downloads my missing subtitles in english and french for both TVshow and movies.
It's perfectly working and integrated with my Plex mediacenter.

I'm currently trying to improve my script because of quota reached on Opensubtitles / sublight (I'm logged thanks to Rednoah's script but it's not enough :p)
I think the quota is the number of request for subtitles, and my problem is that i have a lot of TVshow that I don't need subtitles for and don't exist and OS/sublight/subscene.

So, here is my idea/question :
Is it possible to add an arg to my script to skip looking for missing subtitles for entire folders or create some file in a folder and if my script find it, skip the entire folder... ?

My main script is (x times) :

Code: Select all

filebot -script fn:suball "F:\Series" --lang en -non-strict
thanks !!

polux

User avatar
rednoah
The Source
Posts: 16978
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Skip some folders using script - fn:suball

Post by rednoah » 09 Jan 2013, 02:29

Just start by downloading the suball script and then making the modifications you need. It's really just gonna boil down to an extra line like this: if(dir.name =~ /a|b|c/) { ... }
:idea: Please read the FAQ and How to Request Help.

Post Reply