New update broke old subtitle groovy script.

Any questions? Need some help?
Post Reply
ztoner
Posts: 11
Joined: 13 Dec 2011, 21:02

New update broke old subtitle groovy script.

Post by ztoner »

Hi there Rednoah!
Relay longtime since I updated Filebot :oops:
But today I took the time to do this and my script went... well I guess outdated 8-)

I Run This:

Code: Select all

filebot -script "T:\Autodownload\Running Seasons\subs.groovy"
The Groovy Looks Like This:

Code: Select all

['T:/Autodownload/Running Seasons'].eachMediaFolder{ getMissingSubtitles(folder:it,lang:'en') }
I Get This Error:

Code: Select all

T:\Autodownload\Running Seasons>filebot -script "T:\Autodownload\Running Seasons
\subs.groovy"
MissingMethodException: No signature of method: java.lang.String.getMediaFolders
() is applicable for argument types: () values: []
groovy.lang.MissingMethodException: No signature of method: java.lang.String.get
MediaFolders() is applicable for argument types: () values: []
        at Script2$_run_closure21_closure94.doCall(Script2.groovy:34)
        at Script2$_run_closure21.doCall(Script2.groovy:34)
        at Script3.run(Script3.groovy:1)
        at net.sourceforge.filebot.cli.ScriptShell.evaluate(Unknown Source)
        at net.sourceforge.filebot.cli.ScriptShell.runScript(Unknown Source)
        at net.sourceforge.filebot.cli.ArgumentProcessor.process(Unknown Source)

        at net.sourceforge.filebot.Main.main(Unknown Source)
Failure (░_░)
Launch4j: Failed to run the given command.
I guess My script is TO old for the later releases right??
But it did work before I updated...

(old saying ... If It aint broken ... dont fix...) =)

thx
// Richard
User avatar
rednoah
The Source
Posts: 23928
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: New update broke old subtitle groovy script.

Post by rednoah »

This should work:

Code: Select all

['T:/Autodownload/Running Seasons' as File].eachMediaFolder{ getMissingSubtitles(folder:it,lang:'en') }
Though it might be easier to use my scripts:

Code: Select all

filebot -script fn:suball "T:/Autodownload/Running Seasons" --lang en
:idea: Please read the FAQ and How to Request Help.
ztoner
Posts: 11
Joined: 13 Dec 2011, 21:02

Re: New update broke old subtitle groovy script.

Post by ztoner »

Dam your fast!!
Excellent support, I was still trying to find the answer in the forums myself, and yes It now works 8-)

// Richard
Post Reply