diff --git a/website/scripts/cleaner.groovy b/website/scripts/cleaner.groovy index 9d2f6ff4..482eeb3d 100644 --- a/website/scripts/cleaner.groovy +++ b/website/scripts/cleaner.groovy @@ -9,7 +9,7 @@ def isClutter(f) { def maxsize = tryQuietly{ maxsize as Long } ?: 100 * 1024 * 1024 // path contains blacklisted terms or extension is blacklisted - return f.extension ==~ "(?i)($exts)" || (f.path =~ "(?i)\\b($terms)\\b" && f.length() < maxsize) + return (f.extension ==~ "(?i)($exts)" || f.path =~ "(?i)\\b($terms)\\b") && f.length() < maxsize } diff --git a/website/scripts/lib/htpc.groovy b/website/scripts/lib/htpc.groovy index 26d3bed7..d19fe4b4 100644 --- a/website/scripts/lib/htpc.groovy +++ b/website/scripts/lib/htpc.groovy @@ -24,7 +24,7 @@ def invokeScanVideoLibrary(host, port = 9090) { */ def refreshPlexLibrary(server, port = 32400, files = null) { _guarded { - def sections = new URL("http://$server:$port/plex").getXml() + def sections = new URL("http://$server:$port/library/sections/").getXml() def locations = sections.Directory.Location.collect{ [path:it.'@path', key:it.parent().'@key'] } // limit refresh locations