diff --git a/BuildData.groovy b/BuildData.groovy index 11849841..62666e24 100644 --- a/BuildData.groovy +++ b/BuildData.groovy @@ -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 diff --git a/source/net/sourceforge/filebot/media/MediaDetection.java b/source/net/sourceforge/filebot/media/MediaDetection.java index 3f91089a..3bc3c295 100644 --- a/source/net/sourceforge/filebot/media/MediaDetection.java +++ b/source/net/sourceforge/filebot/media/MediaDetection.java @@ -1124,6 +1124,11 @@ public class MediaDetection { } return strictKey; } + + @Override + public String toString() { + return strictName != null ? strictName : lenientName; + } } /* diff --git a/website/data/query-blacklist.txt b/website/data/query-blacklist.txt index 6c3febfb..f7c40f19 100644 --- a/website/data/query-blacklist.txt +++ b/website/data/query-blacklist.txt @@ -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 diff --git a/website/data/release-groups.txt b/website/data/release-groups.txt index 74d3a492..3181638e 100644 --- a/website/data/release-groups.txt +++ b/website/data/release-groups.txt @@ -1633,6 +1633,7 @@ PKF PL PLANET3 PLASTKASSE +PLAYNOW playXD PLEADERS PLT