Filebot with synology

Running FileBot from the console, Groovy scripting, shell scripts, etc
Post Reply
carter
Posts: 1
Joined: 15 Aug 2014, 08:09

Filebot with synology

Post by carter »

Hi,

I've been spending some days trying to do a simple action with a filebot.
I'm executing filebot int a Synology DS1813+, I've intalled java and filebot, and through ssh I can execute commands with no problems for easy issues, but when I try to do more elaborate actions I don't success.
I want to rename a TV serie and move it to a certain directory. The code I'm using is:

Code: Select all

filebot -rename /volume1/Multimedia/Descargas/SERIESTMP --output /volume1/Multimedia/Descargas/SERIESTMP/test --format {n}/Season {s.pad(2)}/{n}-{s00e00}-{t} --db TheTVDB --lang es -non-strict
ouput:

Code: Select all

NAS> ./Filebot.sh
./Filebot.sh: line 1: syntax error: unexpected "("
If I delete from the command the expression {s.pad(2)} this is what happens:

Code: Select all

filebot -rename /volume1/Multimedia/Descargas/SERIESTMP --output /volume1/Multimedia/Descargas/SERIESTMP/test --format {n}/Season/{n}-{s00e00}-{t} --db TheTVDB --lang es -non-strict
output:

Code: Select all

NAS> ./Filebot.sh
Rename episodes using [TheTVDB]
Auto-detected query: [New Girl]
Fetching episode data for [New Girl]
[MOVE] Rename [/volume1/Multimedia/Descargas/SERIESTMP/New.Girl.S03E13.720p.AC3.Spanish.HDTV.2013.www.trackerhd.com.mkv] to [/volume1/Multimedia/Descargas/SERIESTMP/test/New Girl/Season/New Girl-S03E13-Birthday.mkv]
As you can see, a folder is created, but the name of this folder should be "Season - Temporada <number>" instead of just "Season". I've tried other commands that don't work as:

Code: Select all

filebot -rename /volume1/Multimedia/Descargas/SERIESTMP --output /volume1/Multimedia/Descargas/SERIESTMP/test --format {n}/Season {s}/{n}-{s00e00}-{t} --db TheTVDB --lang es -non-strict
Output:

Code: Select all

Rename episodes using [TheTVDB]
Auto-detected query: [New Girl]
Fetching episode data for [New Girl]
[MOVE] Rename [/volume1/Multimedia/Descargas/SERIESTMP/New Girl-S03E13.mkv] to [/volume1/Multimedia/Descargas/SERIESTMP/test/New Girl/Season.mkv]
Processed 1 files
Somebody can help me, please?
User avatar
rednoah
The Source
Posts: 23947
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Filebot with synology

Post by rednoah »

Learn how to use the shell. You're not quoting your arguments correctly.

@see http://www.filebot.net/forums/viewtopic.php?f=4&t=1899
:idea: Please read the FAQ and How to Request Help.
Post Reply