ERROR: No signature of method: Script2.detectSeriesName()

Support for Ubuntu and other Desktop Linux distributions
Post Reply
plittlefield
Posts: 101
Joined: 09 Mar 2014, 19:15

ERROR: No signature of method: Script2.detectSeriesName()

Post by plittlefield »

Hi Folks,

All was good until the upgrade to 4.7

The logs used to show lines like this:-

Code: Select all

Parameter: artwork = y
Parameter: clean = y
Parameter: xbmc = localhost
Parameter: ut_dir = /home/paully/Downloads/transmission/tv/Bordertown.US.S01E11.720p.HDTV.x264-FLEET.[VTV].mkv
Parameter: ut_kind = multi
Parameter: ut_title = Bordertown.US.S01E11.720p.HDTV.x264-FLEET.[VTV].mkv
Input: /home/paully/Downloads/transmission/tv/Bordertown.US.S01E11.720p.HDTV.x264-FLEET.[VTV].mkv
Group: [tvs:bordertown us] => [Bordertown.US.S01E11.720p.HDTV.x264-FLEET.[VTV].mkv]
Rename episodes using [TheTVDB]
Auto-detected query: [Bordertown US]
May 09, 2016 4:46:58 AM net.filebot.web.AbstractCachedResource get
Fetching episode data for [Bordertown (2016)]
[COPY] Rename [/home/paully/Downloads/transmission/tv/Bordertown.US.S01E11.720p.HDTV.x264-FLEET.[VTV].mkv] to [/home/paully/Videos/TV/Bordertown (201
6)/Bordertown (2016) S01E11.mkv]
Processed 1 files
Fetching series artwork for [Bordertown (2016)] to [/home/paully/Videos/TV/Bordertown (2016)]
Banner already exists: /home/paully/Videos/TV/Bordertown (2016)/poster.jpg
Banner already exists: /home/paully/Videos/TV/Bordertown (2016)/banner.jpg
Banner already exists: /home/paully/Videos/TV/Bordertown (2016)/fanart.jpg
Fanart not found: /home/paully/Videos/TV/Bordertown (2016)/clearart.png / clearart
Fanart not found: /home/paully/Videos/TV/Bordertown (2016)/logo.png / clearlogo
Fanart not found: /home/paully/Videos/TV/Bordertown (2016)/landscape.jpg / tvthumb
Notify XBMC: localhost
Done ヾ(@⌒ー⌒@)ノ
...but after the upgrade to 4.7 they now show this:-

Code: Select all

Parameter: artwork = y
Parameter: clean = y
Parameter: xbmc = localhost
Parameter: ut_dir = /home/paully/Downloads/transmission/tv/Marvels.Agents.of.S.H.I.E.L.D.S03E20.720p.HDTV.x264-AVS.[VTV].mkv
Parameter: ut_kind = multi
Parameter: ut_title = Marvels.Agents.of.S.H.I.E.L.D.S03E20.720p.HDTV.x264-AVS.[VTV].mkv
Input: /home/paully/Downloads/transmission/tv/Marvels.Agents.of.S.H.I.E.L.D.S03E20.720p.HDTV.x264-AVS.[VTV].mkv
No signature of method: Script2.detectSeriesName() is applicable for argument types: (java.io.File, java.lang.Boolean, java.lang.Boolean) values: [/home/paully/Downloads/transmission/tv/Marvels.Agents.of.S.H.I.E.L.D.S03E20.720p.HDTV.x264-AVS.[VTV].mkv, ...]
Possible solutions: detectSeriesName(java.lang.Object, boolean), detectSeriesName(java.lang.Object)
groovy.lang.MissingMethodException: No signature of method: Script2.detectSeriesName() is applicable for argument types: (java.io.File, java.lang.Boolean, java.lang.Boolean) values: [/home/paully/Downloads/transmission/tv/Marvels.Agents.of.S.H.I.E.L.D.S03E20.720p.HDTV.x264-AVS.[VTV].mkv, ...]
Possible solutions: detectSeriesName(java.lang.Object, boolean), detectSeriesName(java.lang.Object)
        at Script1$_run_closure60.doCall(Script1.groovy:255)
        at Script1.run(Script1.groovy:246)
        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:114)
        at net.filebot.cli.ArgumentProcessor.run(ArgumentProcessor.java:29)
        at net.filebot.Main.main(Main.java:120)
Failure (°_°)
Here is my version and debug information:-

Code: Select all

$ filebot -version
FileBot 4.7 (r3923) / Java(TM) SE Runtime Environment 1.8.0_91

Code: Select all

$ filebot -script fn:sysinfo
FileBot 4.7 (r3923)
JNA Native: 4.0.1
MediaInfo: MediaInfoLib - v0.7.69
7-Zip-JBinding: 9.20
Chromaprint: fpcalc version 1.1.0 (/usr/share/filebot/fpcalc)
Extended Attributes: OK
Groovy Engine: 2.4.6
JRE: Java(TM) SE Runtime Environment 1.8.0_91
JVM: 64-bit Java HotSpot(TM) 64-Bit Server VM
CPU/MEM: 4 Core / 3 GB Max Memory / 15 MB Used Memory
OS: Linux (amd64)
Package: DEB
Data: /home/paully/.filebot
uname: Linux mythbuntu-server3 3.13.0-86-generic #130-Ubuntu SMP Mon Apr 18 18:27:15 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux
Done ヾ(@⌒ー⌒@)ノ
Here is my BASH script (which has been fine for 2 years) called by Transmission:-

Code: Select all

/usr/bin/filebot -script "/home/paully/Bin/amc_paully.groovy" --output "/home/paully/Videos" --log-file "/home/paully/.filebot/logs/amc_paully.log" --action copy --conflict override -non-strict --def artwork=y clean=y xbmc=localhost "ut_dir=$TR_TORRENT_DIR/$TR_TORRENT_NAME" "ut_kind=multi" "ut_title=$TR_TORRENT_NAME"
Hope you can help!

Regards,

:-)

Paully
User avatar
rednoah
The Source
Posts: 22984
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: ERROR: No signature of method: Script2.detectSeriesName(

Post by rednoah »

Your custom script is not compatible with the latest version of FileBot. The latest amc script works. If you have custom scripts, then it's your job to keep up to date. ;)
:idea: Please read the FAQ and How to Request Help.
plittlefield
Posts: 101
Joined: 09 Mar 2014, 19:15

Re: ERROR: No signature of method: Script2.detectSeriesName(

Post by plittlefield »

Thanks for pointing in the right direction ;-)

OK, so instead of me spending hours trying to get it correct again, can you help me with my few lines of changes please?

This is in the new amc.groovy script:-

Code: Select all

// series/anime/movie format expressions
//def format = [
//  tvs:   any{ seriesFormat }{ '{plex}' },
//  anime: any{ animeFormat  }{ '{plex}' },
//  mov:   any{ movieFormat  }{ '{plex}' },
//  music: any{ musicFormat  }{ '{plex}' },
//  unsorted: any{ unsortedFormat }{ 'Unsorted/{file.structurePathTail}' }
//]
These are my changes that were working in the old 2.6 version:-

Code: Select all

def format = [
        tvs:   tryQuietly{ seriesFormat } ?: '''TV/{n}/{n} {s00e00}''',
        anime: tryQuietly{ animeFormat  } ?: '''Anime/{n}/{n} - {sxe} - {t.replaceAll(/[!?.]+$/).replaceAll(/[`´‘’ʻ]/, "'").replacePart(', Part $1')$
        mov:   tryQuietly{ movieFormat  } ?: '''Movies/{n} ({y})/{n} ({y}){" CD$pi"}{".$lang"}''',
        music: tryQuietly{ musicFormat  } ?: '''Music/{n}/{album+'/'}{pi.pad(2)+'. '}{artist} - {t}'''
]
This is the test command line:-

Code: Select all

$ /usr/bin/filebot -script "/home/paully/Bin/amc_paully.groovy" --output "/home/paully/Videos" --log-file "/home/paully/.filebot/logs/amc_paully.log" --action copy --conflict override -non-strict --def artwork=y clean=y xbmc=localhost "ut_dir=/home/paully/Downloads/transmission/tv/Marvels.Agents.of.S.H.I.E.L.D.S03E20.720p.HDTV.x264-AVS.[VTV].mkv" "ut_kind=multi" "ut_title=Marvels.Agents.of.S.H.I.E.L.D.S03E20.720p.HDTV.x264-AVS.[VTV].mkv"
This is the error I am now getting:-

Code: Select all

Locking /home/paully/.filebot/logs/amc_paully.log
startup failed:
Script1.groovy: 63: expecting ']', found 'Movies' @ line 63, column 49.
   Quietly{ movieFormat  } ?: '''Movies/{n}
                                 ^
1 error

org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed:
Script1.groovy: 63: expecting ']', found 'Movies' @ line 63, column 49.
   Quietly{ movieFormat  } ?: '''Movies/{n}
                                 ^
1 error

	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:114)
	at net.filebot.cli.ArgumentProcessor.run(ArgumentProcessor.java:29)
	at net.filebot.Main.main(Main.java:120)
Failure (°_°)
Can you help a newbie please?

Thanks!

Regards,

Paully
User avatar
rednoah
The Source
Posts: 22984
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: ERROR: No signature of method: Script2.detectSeriesName(

Post by rednoah »

If you just want custom formats, then you should be passing them in from the command line.
:idea: Please read the FAQ and How to Request Help.
plittlefield
Posts: 101
Joined: 09 Mar 2014, 19:15

Re: ERROR: No signature of method: Script2.detectSeriesName(

Post by plittlefield »

Could you post an example please, based on my little script that I call?

In the meantime, I have downgraded to FileBot version 4.6.1 and things are back to normal.

Thanks.

Paully
User avatar
rednoah
The Source
Posts: 22984
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: ERROR: No signature of method: Script2.detectSeriesName(

Post by rednoah »

How to use custom formats is well-documented.

Please read the manual: viewtopic.php?f=4&t=215
:idea: Please read the FAQ and How to Request Help.
Post Reply