Ignore certain subdirectory

Any questions? Need some help?
Post Reply
Hollow
Posts: 4
Joined: 09 Nov 2013, 11:33

Ignore certain subdirectory

Post by Hollow »

Hi

I use filebot with Task Scheduler to search for missing subtitles for my TV-Shows. As I've organized all my TV-shows in subfolders under a top folder "SERIES", I've tolded the script to do recursive search through all subfolders. I see that some of the shows, it never finds a subtitle as there is no subtitle for those shows. Is is possible to tell the script to ignore those folders in any way? It clutters up the log file that use to track which shows that are found. :)

If not, I will have to take those shows out of the folder. Not a big problem, but if it is easy to ignore folders, that would be better.
User avatar
rednoah
The Source
Posts: 23930
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Ignore certain subdirectory

Post by rednoah »

You could modify the suball script and implement some way remembering what has been processed and what hasn't yet.

pseudo code:

Code: Select all

for each folder:
   if folder contains file ".done":
      break
   if not fetchSubtitles has yields results:
      create file ".done"
:idea: Please read the FAQ and How to Request Help.
f3bruary
Posts: 35
Joined: 16 May 2014, 11:33

Re: Ignore certain subdirectory

Post by f3bruary »

Sorry for bringing an old post back up, but it seemed redundant to create a similar thread. I basically have the same issue. My NAS runs a script that fetches subs for my media but sometimes it simply won't find any. I'm talking about shows like Mr. Bean or Tom and Jerry. Those don't really need (and have) subs, yet filebot searches for them which wastes resources, time and precious API calls :)

Maybe implement something so filebot ignores folders that contain a secret file like: '.filebot_ignore'
User avatar
rednoah
The Source
Posts: 23930
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Ignore certain subdirectory

Post by rednoah »

How about an age limit? e.g. don't process files that are older than n days:
http://www.filebot.net/forums/viewtopic ... &t=5#p8871
:idea: Please read the FAQ and How to Request Help.
f3bruary
Posts: 35
Joined: 16 May 2014, 11:33

Re: Ignore certain subdirectory

Post by f3bruary »

I guess that's possible for all the new media that arrives. Right now I'm still completing all the existing stuff, some of which are 1 year old. In these cases a ignore function would be handy.

I'll just do the current ones manually, then for the script I'll put it a age limit.
User avatar
rednoah
The Source
Posts: 23930
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Ignore certain subdirectory

Post by rednoah »

The suball script also supports ignore patterns like the amc script:

Code: Select all

--def ignore=pattern
So you can ignore any file where the path contains the given pattern (e.g. in your case the folder name)
:idea: Please read the FAQ and How to Request Help.
f3bruary
Posts: 35
Joined: 16 May 2014, 11:33

Re: Ignore certain subdirectory

Post by f3bruary »

Tried the suball script but it errors on me dumping a stacktrace. http://pastie.org/9316211
User avatar
rednoah
The Source
Posts: 23930
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Ignore certain subdirectory

Post by rednoah »

Remove libmediainfo.so since it's not working anyway and is just crashing the process.

If you report crashes you should really include a uname -a as well. ;)
:idea: Please read the FAQ and How to Request Help.
Post Reply