mirror of
https://github.com/mitb-archive/filebot
synced 2024-12-23 08:18:52 -05:00
* fine-tune exclude patterns
This commit is contained in:
parent
0800bc5eb0
commit
c4ab4e8382
@ -1,5 +1,5 @@
|
||||
import org.tukaani.xz.*
|
||||
|
||||
import org.tukaani.xz.*
|
||||
import net.sourceforge.filebot.media.*
|
||||
|
||||
/* ------------------------------------------------------------------------- */
|
||||
|
||||
@ -209,7 +209,7 @@ tvdb.values().each{ r ->
|
||||
|
||||
def addSeriesAlias = { from, to ->
|
||||
def se = thetvdb_index.find{ from == it[1] && !it.contains(to) }
|
||||
if (se == null) throw new Exception("Unabled to find series '${from}'")
|
||||
if (se == null) throw new Exception("Unabled to find series '${from}': '${to}'")
|
||||
thetvdb_index << [se[0], to]
|
||||
}
|
||||
|
||||
@ -246,10 +246,11 @@ if (thetvdb_txt.size() < 30000) { throw new Exception('TheTVDB index sanity fail
|
||||
def anidb = new net.sourceforge.filebot.web.AnidbClient('filebot', 4).getAnimeTitles()
|
||||
|
||||
def anidb_index = anidb.findResults{
|
||||
def row = []
|
||||
row += it.getAnimeId().pad(5)
|
||||
row += getNamePermutations(it.effectiveNames*.replaceAll(/\s+/, ' ')*.trim()*.replaceAll(/['`´‘’ʻ]+/, /'/))
|
||||
return row
|
||||
def names = it.effectiveNames*.replaceAll(/\s+/, ' ')*.trim()*.replaceAll(/['`´‘’ʻ]+/, /'/)
|
||||
names = getNamePermutations(names)
|
||||
names = names.findAll{ stripReleaseInfo(it)?.length() > 0 }
|
||||
|
||||
return names.empty ? null : [it.getAnimeId().pad(5)] + names
|
||||
}
|
||||
|
||||
// join and sort
|
||||
|
@ -1124,6 +1124,11 @@ public class MediaDetection {
|
||||
}
|
||||
return strictKey;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return strictName != null ? strictName : lenientName;
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
|
@ -128,6 +128,7 @@
|
||||
^volume[0-9]?$
|
||||
^Volumes$
|
||||
^watch$
|
||||
^www$
|
||||
A.PROCESAR
|
||||
A.Release.Lounge
|
||||
ABC
|
||||
@ -309,7 +310,7 @@ video[s]?
|
||||
vo
|
||||
Volume.TB
|
||||
WS
|
||||
www[.][\w-.]+[.](com|net|tk|ro|cd|me|de)
|
||||
www.[\p{Alnum}\p{Punct}]+?.(com|net|tk|ro|cd|me|de)
|
||||
xbmc
|
||||
xRipp
|
||||
XtremeDoN
|
||||
|
@ -1633,6 +1633,7 @@ PKF
|
||||
PL
|
||||
PLANET3
|
||||
PLASTKASSE
|
||||
PLAYNOW
|
||||
playXD
|
||||
PLEADERS
|
||||
PLT
|
||||
|
Loading…
Reference in New Issue
Block a user