Black List White List

Any questions? Need some help?
Post Reply
snake98
Posts: 10
Joined: 19 Jun 2014, 20:54

Black List White List

Post 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)
}
User avatar
rednoah
The Source
Posts: 23942
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Black List White List

Post 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
:idea: Please read the FAQ and How to Request Help.
snake98
Posts: 10
Joined: 19 Jun 2014, 20:54

Re: Black List White List

Post by snake98 »

turning on -non-strict solved my problem thanks.
Post Reply