OK, seems I misunderstood something somewhere then

Will just remove the filter for now then and see how it goes.
Theoretically though, as I understand the filter takes any arbitrary code, correct? So it should be possible to process the label for example and apply different filters depending on the label? Say for example I could use a label called tv_old or similar and drop the filter for just that? Unfortunately I'm not really familiar with the syntax, but reading a little into groovy this should work, right?
Code: Select all
--filter "F:{(ut_label != 'tv_old') ? (age < 7 || !model.any{ it.age < 7 })}"
That "should" return nothing if the statement is true and else return the filter string I think? Apparently I have to use the F: or else I get a weird error that I have no idea what it means, but that's what google suggests
Unfortunately that fails for me too. It takes forever to even fetch the episode data, and then it just dumps me the whole XML into the console and log file...
/edit Doesn't even work with my old command now

is TVDB having issues? :/
Code: Select all
[2016-12-08 03:58:56] Executing: filebot -script fn:amc --output "C:\Users\tarulia\Downloads\BitTorrent\_organized" --log-file "C:\Users\tarulia\Downloads\BitTorrent\_organized\amc.log" --action test --conflict override -non-strict --filter "age < 30 || !model.any{ it.age < 30 }" --def music=n artwork=n "ut_label=tv" "ut_state=11" "ut_title=18x16 [yibis] 762 [F59500BA].mkv" "ut_kind=single" "ut_file=18x16 [yibis] 762 [F59500BA].mkv" "ut_dir=C:\Volumes\NAS 1-2 1TB\Videos\Anime\Subbed\One Piece" "seriesFormat={es.collect{ s.pad(2)+'x'+e.pad(2)}.join('-')} [{group}] {episodes*.absolute*.pad(3).join('-')} [{crc32}]"
Results in
Code: Select all
Run script [fn:amc] at [Thu Dec 08 03:59:00 CET 2016]
Parameter: music = n
Parameter: artwork = n
Parameter: ut_label = tv
Parameter: ut_state = 11
Parameter: ut_title = 18x16 [yibis] 762 [F59500BA].mkv
Parameter: ut_kind = single
Parameter: ut_file = 18x16 [yibis] 762 [F59500BA].mkv
Parameter: ut_dir = C:\Volumes\NAS 1-2 1TB\Videos\Anime\Subbed\One Piece
Parameter: seriesFormat = {es.collect{ s.pad(2)+'x'+e.pad(2)}.join('-')} [{group}] {episodes*.absolute*.pad(3).join('-')} [{crc32}]
Input: C:\Volumes\NAS 1-2 1TB\Videos\Anime\subbed\One Piece\18x16 [yibis] 762 [F59500BA].mkv
Group: [tvs:one piece] => [18x16 [yibis] 762 [F59500BA].mkv]
Rename episodes using [TheTVDB]
Auto-detected query: [One Piece]
Fetching episode data for [One Piece]
<?xml version="1.0" encoding="UTF-8" ?>
//Data here, it just breaks up at some point
org.xml.sax.SAXParseException; lineNumber: 55; columnNumber: 13; XML-Dokumentstrukturen müssen innerhalb derselben Entity beginnen und enden.
at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(Unknown Source)
at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.fatalError(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLScanner.reportFatalError(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.endEntity(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.endEntity(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLEntityManager.endEntity(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLEntityScanner.load(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLEntityScanner.skipSpaces(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.seekCloseOfStartTag(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanStartElement(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown Source)
at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Unknown Source)
at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
at net.filebot.web.WebRequest.validateXml(WebRequest.java:324)
at net.filebot.CachedResource.lambda$validateXml$5(CachedResource.java:169)
at net.filebot.CachedResource.lambda$get$1(CachedResource.java:99)
at net.filebot.Cache.computeIf(Cache.java:90)
at net.filebot.CachedResource.get(CachedResource.java:82)
at net.filebot.web.TheTVDBClientV1.getXmlResource(TheTVDBClientV1.java:272)
at net.filebot.web.TheTVDBClientV1.fetchSeriesData(TheTVDBClientV1.java:119)
at net.filebot.web.AbstractEpisodeListProvider.lambda$getSeriesData$1(AbstractEpisodeListProvider.java:60)
at net.filebot.Cache.computeIf(Cache.java:90)
at net.filebot.Cache$TypedCache.computeIf(Cache.java:176)
at net.filebot.Cache.computeIfAbsent(Cache.java:96)
at net.filebot.Cache$TypedCache.computeIfAbsent(Cache.java:181)
at net.filebot.web.AbstractEpisodeListProvider.getSeriesData(AbstractEpisodeListProvider.java:59)
at net.filebot.web.AbstractEpisodeListProvider.getEpisodeList(AbstractEpisodeListProvider.java:36)
at net.filebot.cli.CmdlineOperations.fetchEpisodeSet(CmdlineOperations.java:299)
at net.filebot.cli.CmdlineOperations.renameSeries(CmdlineOperations.java:207)
at net.filebot.cli.CmdlineOperations.rename(CmdlineOperations.java:110)
at net.filebot.cli.ScriptShellBaseClass.rename(ScriptShellBaseClass.java:332)
at Script1$_run_closure55.doCall(Script1.groovy:418)
at Script1.run(Script1.groovy:404)
at net.filebot.cli.ScriptShell.evaluate(ScriptShell.java:62)
at net.filebot.cli.ScriptShell.runScript(ScriptShell.java:72)
at net.filebot.cli.ArgumentProcessor.runScript(ArgumentProcessor.java:113)
at net.filebot.cli.ArgumentProcessor.run(ArgumentProcessor.java:28)
at net.filebot.Main.main(Main.java:122)
Fetch failed: org.xml.sax.SAXParseException; lineNumber: 55; columnNumber: 13; XML-Dokumentstrukturen müssen innerhalb derselben Entity beginnen und enden. [http://thetvdb.com/api/694FAD89942D3827/series/81797/all/en.xml]
XML-Dokumentstrukturen müssen innerhalb derselben Entity beginnen und enden.
Finished without processing any files
Failure (°_°)
What have I done :/ Have I even done this
