Renaming on Diskstation fails

Support for Synology NAS, QNAP NAS and other Embedded Linux systems
Post Reply
dapersa
Posts: 8
Joined: 23 Jun 2017, 21:59

Renaming on Diskstation fails

Post by dapersa »

Hello there,
I tried Filebot for the last couple of days and it is really great.

Unfortionately I am not good at working on it on my Synology Diskstation via ssh.

So I created some empty files to rename from "Monsters Inc. (Pete Docter-2001)" to "Monsters Inc. (2001) - Pete Docter" and it works great on the Windows application, but on via ssh it creates one empty file called "() -.txt" and the other ones can not be renamed because the name "already exists"

I used this script

Code: Select all

 filebot -rename "/volume1/Filme/TestPixar" --db xattr -non-strict --format "{fn.replaceFirst(/(^.+)\(([^\)]+)-((?:19|20)\d{2})\)/, '$1($3) - $2')}"
And the result is this:

Code: Select all

Rename files using [Extended Attributes]
[MOVE] From [/volume1/Filme/TestPixar/Alles Steht Kopf (Pete Docter-2015).txt] to [/volume1/Filme/TestPixar/() -.txt]
Skipped [/volume1/Filme/TestPixar/Arlo und Spot (Peter Sohn-2015).txt] because [/volume1/Filme/TestPixar/() -.txt] already exists
Skipped [/volume1/Filme/TestPixar/Cars 2 (John Lasseter-2011).txt] because [/volume1/Filme/TestPixar/() -.txt] already exists
What am I doing wrong?

Also my System Info is this:

Code: Select all

FileBot 4.7.9 (r4984)
JNA Native: 5.1.0
MediaInfo: net.filebot.mediainfo.MediaInfoException: Unable to load amd64 (64-bit) native library libmediainfo.so: Unable to load library 'mediainfo': Native library (linux-x86-64/libmediainfo.so) not found in resource path ([file:/volume1/@appstore/filebot/FileBot.jar])
Apache Commons VFS: [zip, rar]
Chromaprint: java.io.IOException: Cannot run program "fpcalc": error=2, No such file or directory
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_131
JVM: 64-bit Java HotSpot(TM) 64-Bit Server VM
CPU/MEM: 4 Core / 1 GB Max Memory / 28 MB Used Memory
OS: Linux (amd64)
Package: SPK
uname: Linux Server 3.10.102 #15132 SMP Wed Jun 14 12:26:46 CST 2017 x86_64 GNU/Linux synology_braswell_916+
Done ヾ(@⌒ー⌒@)ノ

Thanks in advance! :)

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

Re: Renaming on Diskstation fails

Post by rednoah »

Mind the $ symbol:

Code: Select all

echo "I like $TEST"
I like
@see viewtopic.php?t=1899


:idea: Use the @file syntax for reading command-line arguments from external text files. That way you don't have to escape your format expression.


You can also use --action test for testing.
:idea: Please read the FAQ and How to Request Help.
Post Reply