Support for Ubuntu and other Desktop Linux distributions
Hamm3rhart
Posts: 8 Joined: 16 Mar 2020, 10:43
Post
by Hamm3rhart » 03 May 2020, 09:06
Hello guys,
my Ubuntu Filebot can't seem to find the files that he found before.
Code: Select all
sudo filebot -rename --output ./ --action move ./* --log-file amc.log --mode interactive --def minFileSize=0 minLengthMS=0 --db TheTVDB --lang de --format "{n.space('.')}.{s00e00}.{vf}.{ac}.{channels}.{vc}" -non-strict
When i run the command in the directory where the files are located i get this "Error?"
Code: Select all
* This is not a -script call. The script parameter --def minFileSize has no effect.
* This is not a -script call. The script parameter --def minLengthMS has no effect.
File does not exist: ./Loveless.S01E01.mkv
File does not exist: ./Loveless.S01E02.mkv
File does not exist: ./Loveless.S01E03.mkv
File does not exist: ./Loveless.S01E04.mkv
File does not exist: ./Loveless.S01E05.mkv
File does not exist: ./Loveless.S01E06.mkv
File does not exist: ./Loveless.S01E07.mkv
File does not exist: ./Loveless.S01E08.mkv
File does not exist: ./Loveless.S01E09.mkv
File does not exist: ./Loveless.S01E10.mkv
File does not exist: ./Loveless.S01E11.mkv
File does not exist: ./Loveless.S01E12.mkv
Rename episodes using [TheTVDB] with [Airdate Order]
No media files: []
Failure (×_×)⌒☆
Code: Select all
filebot -version
FileBot 4.9.1 (r7372) JDK8 / OpenJDK Runtime Environment 1.8.0_242 / Linux 4.15.0-96-generic (amd64)
The command just worked fine before the update i think. The directory is btw. under /opt/ so no external harddrive and it got 0777 permissions.
Regards Hamm3rhart
rednoah
The Source
Posts: 22998 Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:
Post
by rednoah » 03 May 2020, 09:47
What does
filebot -script fn:sysinfo say?
./* and
File does not exist: ./Loveless.S01E01.mkv tell us that shell expansion works, i.e. shell has access to files yet filebot has not. If you're using the SNAP package, then that would explain things, since SNAP packages are sandboxed and cannot access non-standard folders like
/opt due
confinement rules .
Hamm3rhart
Posts: 8 Joined: 16 Mar 2020, 10:43
Post
by Hamm3rhart » 03 May 2020, 10:34
Yes i am using the SNAP package
Code: Select all
filebot -script fn:sysinfo
FileBot 4.9.1 (r7372) JDK8
JNA Native: 6.1.0
MediaInfo: 0.7.82
p7zip: p7zip Version 9.20 (locale=en_US.UTF-8,Utf16=on,HugeFiles=on,8 CPUs)
unrar: UNRAR 5.30 beta 2 freeware
Chromaprint: 1.2.0
Extended Attributes: OK
Unicode Filesystem: OK
Script Bundle: 2020-04-20 (r634)
Groovy: 3.0.3
JRE: OpenJDK Runtime Environment 1.8.0_242
JVM: 64-bit OpenJDK 64-Bit Server VM
CPU/MEM: 8 Core / 7 GB Max Memory / 78 MB Used Memory
OS: Linux (amd64)
HW: Linux PlasticPlays.com 4.15.0-96-generic #97-Ubuntu SMP Wed Apr 1 03:25:46 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
STORAGE: NONE
DATA: /root/snap/filebot/33/data
Package: SNAP
License: FileBot License P9072802 (Valid-Until: 2020-08-28)
Done ヾ(@⌒ー⌒@)ノ
rednoah
The Source
Posts: 22998 Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:
Post
by rednoah » 03 May 2020, 10:39
If you're using the SNAP package then SNAP confinement will deny access to any non-standard file system locations, adding security at the expense of usability.
You may prefer to use the standard APT package if you want to run
filebot with full system access:
https://www.filebot.net/linux/apt.html
Hamm3rhart
Posts: 8 Joined: 16 Mar 2020, 10:43
Post
by Hamm3rhart » 03 May 2020, 11:22
Thank you very much. The command above seems to work, but not this one:
Code: Select all
sudo filebot -rename --output ./ --action move ./* --log-file amc.log --mode interactive --db TheTVDB --lang de --format "{n.space('.')}.{s00e00}{audioLanguages.size() > 1 ? '.German' : null}{audioLanguages.size() > 1 ? '.DL' : null}.{ac}.{vf}{".$vs".upper()}.{vc}{".$group"}.REMUX" -non-strict
it displays this kind of stuff
Code: Select all
sudo filebot -rename --output ./ --action move ./* --log-file amc.log --mode interactive --def minFileSize=0 minLengthMS=0 --db TheTVDB --lang de --format "{n.space('.')}.{s00e00}{audioLanguages.size() > 1 ? '.German' : null}{audioLanguages.size() > 1 ? '.DL' : null}.{ac}.{vf}{".$vs".upper()}.{vc}{".$group"}.REMUX" -non-strict
* This is not a -script call. The script parameter --def minFileSize has no effect.
* This is not a -script call. The script parameter --def minLengthMS has no effect.
Did you read the manual?
└ https://www.filebot.net/cli.html
Did you quote and escape your arguments correctly?
└ https://www.filebot.net/help/args.html
args[1] = -rename
args[2] = --output
args[3] = ./
args[4] = --action
args[5] = move
args[6] = ./Loveless.S01E01.mkv
args[7] = ./Loveless.S01E02.mkv
args[8] = ./Loveless.S01E03.mkv
args[9] = ./Loveless.S01E04.mkv
args[10] = ./Loveless.S01E05.mkv
args[11] = ./Loveless.S01E06.mkv
args[12] = ./Loveless.S01E07.mkv
args[13] = ./Loveless.S01E08.mkv
args[14] = ./Loveless.S01E09.mkv
args[15] = ./Loveless.S01E10.mkv
args[16] = ./Loveless.S01E11.mkv
args[17] = ./Loveless.S01E12.mkv
args[18] = --log-file
args[19] = amc.log
args[20] = --mode
args[21] = interactive
args[22] = --def
args[23] = minFileSize=0
args[24] = minLengthMS=0
args[25] = --db
args[26] = TheTVDB
args[27] = --lang
args[28] = de
args[29] = --format
args[30] = {n.space('.')}.{s00e00}{audioLanguages.size() > 1 ? '.German' : null}{audioLanguages.size() > 1 ? '.DL' : null}.{ac}.{vf}{..upper()}.{vc}{.}.REMUX
args[31] = -non-strict
javax.script.ScriptException: SyntaxError: Unexpected input: '..'
javax.script.ScriptException: SyntaxError: Unexpected input: '..'
at net.filebot.format.ExpressionFormat.compile(Unknown Source)
at net.filebot.format.ExpressionFormat.<init>(Unknown Source)
at net.filebot.format.ExpressionFileFormat.<init>(Unknown Source)
at net.filebot.cli.ArgumentBean.getExpressionFileFormat(Unknown Source)
at net.filebot.cli.ArgumentProcessor.runCommand(Unknown Source)
at net.filebot.cli.ArgumentProcessor.run(Unknown Source)
at net.filebot.Main.main(Unknown Source)
Error (o_O)
The format expression works on windows with the same files just fine :/
rednoah
The Source
Posts: 22998 Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:
Post
by rednoah » 03 May 2020, 11:30
The format expression that you think you're passing in may be correct, but the format expression that is actually passed in is clearly incorrect:
Code: Select all
args[30] = {n.space('.')}.{s00e00}{audioLanguages.size() > 1 ? '.German' : null}{audioLanguages.size() > 1 ? '.DL' : null}.{ac}.{vf}{..upper()}.{vc}{.}.REMUX
e.g.
SyntaxError: Unexpected input: '..'
Please read
Cmdline and Argument Passing for details:
Code: Select all
Did you quote and escape your arguments correctly?
└ https://www.filebot.net/help/args.html