Ignore folder hierarchy
Posted: 31 Aug 2013, 12:04
Hi - Is it possible to ignore the folder hierarchy and only look at the filename or filename and parent folder only?
Or - provide certain words to always ignore ?
My folders look like this:
/tank/movies/new-converted
Script is:
#!/bin/bash
filebot -r -rename "$1" --db TheMovieDB --format "/tank/movies/new-converted/{n} ({y})/{n} ({y}) [{sdhd}] [{certification}] [{rating}] [{imdbid}] [{vc}-{ac}] [{vf}] [{info.runtime}] "
$moviebot Lincoln-2012-1024x426-HD.m4v
Rename movies using [TheMovieDB]
Auto-detect movie from context: [/tank/movies/new-converted/Lincoln-2012-1024x426-HD.m4v]
Exception: [tank/Lincoln-2012-1024x426-HD.m4v] Failed to auto-select search result: [Lincoln (2012), The Woman in the Septic Tank (2011), Fish Tank (2009), Tank (1984), Tank (1974), Think Tank (2006), Tank Girl (1995), 7 More Days In The Tank (2006), Tank Commando (1959), Strikeforce: Tank vs Buentello (2006), Tank Battalion (1958), Stop that Tank! (1942), Tank Battalion (1991), Dominion: Tank Police (1988), Herbie Fully Loaded (2005), The Haunting Hour: Don't Think About It (2007), The Night of the Generals (1967), The Beast of War (1988)]
Done ヾ(@⌒ー⌒@)ノ
As you can see the context search always returns films with the word 'tank' in - I would like to stop that happening
Thanks!
Or - provide certain words to always ignore ?
My folders look like this:
/tank/movies/new-converted
Script is:
#!/bin/bash
filebot -r -rename "$1" --db TheMovieDB --format "/tank/movies/new-converted/{n} ({y})/{n} ({y}) [{sdhd}] [{certification}] [{rating}] [{imdbid}] [{vc}-{ac}] [{vf}] [{info.runtime}] "
$moviebot Lincoln-2012-1024x426-HD.m4v
Rename movies using [TheMovieDB]
Auto-detect movie from context: [/tank/movies/new-converted/Lincoln-2012-1024x426-HD.m4v]
Exception: [tank/Lincoln-2012-1024x426-HD.m4v] Failed to auto-select search result: [Lincoln (2012), The Woman in the Septic Tank (2011), Fish Tank (2009), Tank (1984), Tank (1974), Think Tank (2006), Tank Girl (1995), 7 More Days In The Tank (2006), Tank Commando (1959), Strikeforce: Tank vs Buentello (2006), Tank Battalion (1958), Stop that Tank! (1942), Tank Battalion (1991), Dominion: Tank Police (1988), Herbie Fully Loaded (2005), The Haunting Hour: Don't Think About It (2007), The Night of the Generals (1967), The Beast of War (1988)]
Done ヾ(@⌒ー⌒@)ノ
As you can see the context search always returns films with the word 'tank' in - I would like to stop that happening
Thanks!