Help with specific syntax for renaming tv show

All about user-defined episode / movie / file name format expressions
Post Reply
User avatar
deadman36g
Posts: 9
Joined: 28 Jan 2014, 02:56

Help with specific syntax for renaming tv show

Post by deadman36g »

Hello,

I am trying to get the following to results,

my original filename is:

Code: Select all

wwe.raw.2017.10.02.720p.hdtv.x264-kyr.mkv
and I want it to be:

Code: Select all

wwe.raw.2017.s25e40.10.02.720p.hdtv.x264-kyr.mkv
The syntax I am currently using is:

Code: Select all

filebot -rename . --db themoviedb::tv -non-strict --format "{n.lower()}.{s00e00.lower()}.[{airdate.format("yyyy.MM.dd"].{vf}.{group.lower()}"
I get the following output

Code: Select all

SyntaxError: missing token: }
javax.script.ScriptException: SyntaxError: missing token: }
	at net.filebot.format.ExpressionFormat.compile(ExpressionFormat.java:112)
	at net.filebot.format.ExpressionFormat.<init>(ExpressionFormat.java:43)
	at net.filebot.format.ExpressionFileFormat.<init>(ExpressionFileFormat.java:12)
	at net.filebot.cli.ArgumentBean.getExpressionFileFormat(ArgumentBean.java:221)
	at net.filebot.cli.ArgumentProcessor.runCommand(ArgumentProcessor.java:88)
	at net.filebot.cli.ArgumentProcessor.run(ArgumentProcessor.java:26)
	at net.filebot.Main.main(Main.java:115)
filebot -script fn:sysinfo

Code: Select all

FileBot 4.7.9 (r4984)
JNA Native: 5.1.0
MediaInfo: 0.7.93
7-Zip-JBinding: 9.20
Chromaprint: 1.4.2
Extended Attributes: OK
Unicode Filesystem: OK
Script Bundle: 2017-05-15 (r500)
Groovy: 2.4.10
JRE: Java(TM) SE Runtime Environment 1.8.0_144
JVM: 64-bit Java HotSpot(TM) 64-Bit Server VM
CPU/MEM: 8 Core / 3 GB Max Memory / 25 MB Used Memory
OS: Linux (amd64)
Package: DEB
uname: Linux openmediavault 4.9.0-0.bpo.3-amd64 #1 SMP Debian 4.9.30-2+deb9u2~bpo8+1 (2017-06-27) x86_64 GNU/Linux
Any help would be appreciated.
User avatar
rednoah
The Source
Posts: 22923
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Help with specific syntax for renaming tv show

Post by rednoah »

1.
Your code:

Code: Select all

{airdate.format("yyyy.MM.dd"
Error message:

Code: Select all

SyntaxError: missing token: }
:arrow: You're missing a } at the end of that expression there.


2.
Please read Cmdline and Argument Passing. You're not quoting your arguments correctly.

e.g. you can't use "..." inside "..." without escaping the " characters:

Code: Select all

"..."..."..."
:idea: Please read the FAQ and How to Request Help.
Post Reply