Page 1 of 1
Ignore certain subdirectory
Posted: 17 Nov 2013, 11:47
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.
Re: Ignore certain subdirectory
Posted: 17 Nov 2013, 13:14
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"
Re: Ignore certain subdirectory
Posted: 19 Jun 2014, 20:00
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'
Re: Ignore certain subdirectory
Posted: 19 Jun 2014, 20:19
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
Re: Ignore certain subdirectory
Posted: 20 Jun 2014, 11:33
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.
Re: Ignore certain subdirectory
Posted: 20 Jun 2014, 17:56
by rednoah
The suball script also supports ignore patterns like the amc script:
So you can ignore any file where the path contains the given pattern (e.g. in your case the folder name)
Re: Ignore certain subdirectory
Posted: 23 Jun 2014, 12:13
by f3bruary
Tried the suball script but it errors on me dumping a stacktrace.
http://pastie.org/9316211
Re: Ignore certain subdirectory
Posted: 23 Jun 2014, 13:27
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.
