From 6c744550a666a53fc54d3b146058ca703603285b Mon Sep 17 00:00:00 2001 From: Reinhard Pointner Date: Fri, 27 Jul 2012 02:14:49 +0000 Subject: [PATCH] * work with effective movie folder --- website/scripts/utorrent-postprocess.groovy | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/website/scripts/utorrent-postprocess.groovy b/website/scripts/utorrent-postprocess.groovy index d363ecc4..bd49719f 100644 --- a/website/scripts/utorrent-postprocess.groovy +++ b/website/scripts/utorrent-postprocess.groovy @@ -41,7 +41,7 @@ def groups = input.groupBy{ f -> // DECIDE EPISODE VS MOVIE (IF NOT CLEAR) if (tvs && mov) { def norm = { s -> s.lower().space(' ') } - def dn = norm(f.dir.name) + def dn = norm(guessMovieFolder(f)?.name ?: '') def fn = norm(f.nameWithoutExtension) def sn = norm(tvs) def mn = norm(mov.name)