Refactor BuildData.groovy
This commit is contained in:
parent
3f10b3265b
commit
28954d4b83
@ -289,16 +289,16 @@ tvdb.values().each{ r ->
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (year > 0) {
|
||||||
|
names.add(1, names[0].replaceTrailingBrackets() + " ($year)")
|
||||||
|
}
|
||||||
|
|
||||||
def alias = extraAliasNames[names[0]]
|
def alias = extraAliasNames[names[0]]
|
||||||
if (alias) {
|
if (alias) {
|
||||||
log.fine "Add alias ${names[0]} => ${alias}"
|
log.fine "Add alias ${names[0]} => ${alias}"
|
||||||
names += alias
|
names += alias
|
||||||
}
|
}
|
||||||
|
|
||||||
if (year > 0 && !names[0].endsWith(" ($year)")) {
|
|
||||||
names.add(1, names[0] + " ($year)")
|
|
||||||
}
|
|
||||||
|
|
||||||
// always include if alias has been manually added
|
// always include if alias has been manually added
|
||||||
if (alias != null || (votes >= 5 && rating >= 4) || (votes >= 2 && rating >= 6) || (votes >= 1 && rating >= 10)) {
|
if (alias != null || (votes >= 5 && rating >= 4) || (votes >= 2 && rating >= 6) || (votes >= 1 && rating >= 10)) {
|
||||||
getNamePermutations(names).each{ n ->
|
getNamePermutations(names).each{ n ->
|
||||||
|
Loading…
Reference in New Issue
Block a user