mirror of
https://github.com/mitb-archive/filebot
synced 2024-12-24 16:58:51 -05:00
* support newer plex http api
This commit is contained in:
parent
cfa959cd38
commit
cebcb3f92f
@ -9,7 +9,7 @@ def isClutter(f) {
|
|||||||
def maxsize = tryQuietly{ maxsize as Long } ?: 100 * 1024 * 1024
|
def maxsize = tryQuietly{ maxsize as Long } ?: 100 * 1024 * 1024
|
||||||
|
|
||||||
// path contains blacklisted terms or extension is blacklisted
|
// 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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -24,7 +24,7 @@ def invokeScanVideoLibrary(host, port = 9090) {
|
|||||||
*/
|
*/
|
||||||
def refreshPlexLibrary(server, port = 32400, files = null) {
|
def refreshPlexLibrary(server, port = 32400, files = null) {
|
||||||
_guarded {
|
_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'] }
|
def locations = sections.Directory.Location.collect{ [path:it.'@path', key:it.parent().'@key'] }
|
||||||
|
|
||||||
// limit refresh locations
|
// limit refresh locations
|
||||||
|
Loading…
Reference in New Issue
Block a user