Page 1 of 1

Black List White List

Posted: 29 Oct 2014, 23:50
by snake98
Thanks for Great product, I even donated a while back because it just works :-) 99.99999% of the time.

I have a small problem or suggestion, white list or black list for tv shows names. The best example would be doctor who 2005. That has been brought up before. An example Would be if it on the Black list (Doctor who (2009)) Ignore that return. Or a white list (Doctor who (2005)) If it matches within the top 5 returns use that by default for selections. You could use the thetvdb.com id number for shows id to white list or black list.

If you know another fix for the Doctor who or point me to the correct message that some has for this example I would be great.

Thanks for you help.


info
Gui or cli (fails in both on doctor who (2005)) - I get two returns (2005) (2009)
Build 4.5

script running modify process.groovy

Code: Select all

// PERSONALIZED SETTINGS
def episodeDir    = '''//xxxx/TV Shows''' as File
def episodeFormat = '''//xxxxx/incoming/{n}/Season {s}/S{s.pad(2)}E{e.pad(2)} - {t}'''
def movieDir      = '''//xxxxx/Movies''' as File
def movieFormat   = '''//xxxxx/incoming/{n} ({y})/{n} ({y})'''

// ignore chunk, part, par and hidden files
def incomplete(f) { f.name =~ /[.]incomplete|[.]chunk|[.]par$|[.]dat$/ }


// extract completed multi-volume rar files
[episodeDir, movieDir].getFolders{ !it.hasFile{ incomplete(it) } && it.hasFile{ it =~ /[.]rar$/ } }.each{ dir ->
// extract all archives found in this folder
def paths = extract(folder:dir)

// delete original archive volumes after successful extraction
if (paths != null && !paths.isEmpty()) {
dir.listFiles{ it =~ /[.]rar$|[.]r[\d]+$/ }*.delete()
}
}


/*
* Fetch subtitles and sort into folders
*/
episodeDir.getFolders{ !it.hasFile{ incomplete(it) } && it.hasFile{ it.isVideo() } }.each{ dir ->
println "Processing $dir"
def files = dir.listFiles{ it.isVideo() }

// fetch subtitles
files += getSubtitles(file:files)

// sort episodes / subtitles
rename(file:files, db:'TheTVDB', format:episodeFormat)
}

movieDir.getFolders{ !it.hasFile{ incomplete(it) } && it.hasFile{ it.isVideo() } }.each{ dir ->
println "Processing $dir"
def files = dir.listFiles{ it.isVideo() }

// fetch subtitles
files += getSubtitles(file:files)

// sort movies / subtitles
rename(file:files, db:'TheMovieDB', format:movieFormat)
}

Re: Black List White List

Posted: 30 Oct 2014, 02:04
by rednoah
When in doubt FileBot should still pick the most popular match / or possibly most recent. Please send the logs / paths if there is a mismatch.

As for fixing your special case, there is always --filter expressions:
viewtopic.php?f=3&t=2127

Re: Black List White List

Posted: 30 Oct 2014, 15:00
by snake98
turning on -non-strict solved my problem thanks.