N00b needs some help here...

Support for Ubuntu and other Desktop Linux distributions
Post Reply
BuMmR
Posts: 7
Joined: 30 Jan 2017, 22:46

N00b needs some help here...

Post by BuMmR »

What am I doing wrong?

Code: Select all

filebot -rename *.mkv --filter "S == 1" --format "{n} - {s00e00} - {t}" -q "Leverage" --db TheTvDb
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] = Leverage.S01E01.720p.WEB-DL.DD5.1.H.264.mkv
args[3] = Leverage.S01E02.720p.WEB-DL.DD5.1.H.264.mkv
args[4] = Leverage.S01E03.720p.WEB-DL.DD5.1.H.264.mkv
args[5] = Leverage.S01E04.720p.WEB-DL.DD5.1.H.264.mkv
args[6] = Leverage.S01E05.720p.WEB-DL.DD5.1.H.264.mkv
args[7] = Leverage.S01E06.720p.WEB-DL.DD5.1.H.264.mkv
args[8] = Leverage.S01E07.720p.WEB-DL.DD5.1.H.264.mkv
args[9] = Leverage.S01E08.720p.WEB-DL.DD5.1.H.264.mkv
args[10] = Leverage.S01E09.720p.WEB-DL.DD5.1.H.264.mkv
args[11] = Leverage.S01E10.720p.WEB-DL.DD5.1.H.264.mkv
args[12] = Leverage.S01E11.720p.WEB-DL.DD5.1.H.264.mkv
args[13] = Leverage.S01E12.720p.WEB-DL.DD5.1.H.264.mkv
args[14] = Leverage.S01E13.720p.WEB-DL.DD5.1.H.264.mkv
args[15] = --filter
args[16] = S
args[17] = ==
args[18] = 1
args[19] = --format
args[20] = {n}
args[21] = -
args[22] = {s00e00}
args[23] = -
args[24] = {t}
args[25] = -q
args[26] = Leverage
args[27] = --db
args[28] = TheTvDb

"-" is not a valid option
User avatar
rednoah
The Source
Posts: 19435
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: N00b needs some help here...

Post by rednoah »

1.
Something is going awry at this point:

Code: Select all

args[15] = --filter
args[16] = S
args[17] = ==
...
The s == 1 bit is a single argument, but it's being passed in as 3 separate arguments, which suggests that you're not quoting your argument correctly.


:idea: Please read Cmdline and Argument Passing for details.


:!: Note that the command you posted does not match the command-line output error message that you posted. Looking at the "s == 1" bit by itself, it does look good to me. It's as if all the " are stripped away before the line is interpreted by the shell.



2.
Also, it's --q here:

Code: Select all

args[25] = -q
:idea: Please read the FAQ and How to Request Help.
BuMmR
Posts: 7
Joined: 30 Jan 2017, 22:46

Re: N00b needs some help here...

Post by BuMmR »

I tried cutting out some of the other args, just to see what would happen... I got this....

Code: Select all

filebot -rename Leverage.S01E01.720p.WEB-DL.DD5.1.H.264.mkv --q "Leverage" --db TheTvDb
File does not exist: Leverage.S01E01.720p.WEB-DL.DD5.1.H.264.mkv
Rename episodes using [TheTVDB] with [Airdate Order]
No media files: []
Failure (×_×)⌒☆
But when I do ls, its clearly there...

Code: Select all

Leverage.S01E01.720p.WEB-DL.DD5.1.H.264.mkv
Leverage.S01E02.720p.WEB-DL.DD5.1.H.264.mkv
Leverage.S01E03.720p.WEB-DL.DD5.1.H.264.mkv
Leverage.S01E04.720p.WEB-DL.DD5.1.H.264.mkv
Leverage.S01E05.720p.WEB-DL.DD5.1.H.264.mkv
Leverage.S01E06.720p.WEB-DL.DD5.1.H.264.mkv
Leverage.S01E07.720p.WEB-DL.DD5.1.H.264.mkv
Leverage.S01E08.720p.WEB-DL.DD5.1.H.264.mkv
Leverage.S01E09.720p.WEB-DL.DD5.1.H.264.mkv
Leverage.S01E10.720p.WEB-DL.DD5.1.H.264.mkv
Leverage.S01E11.720p.WEB-DL.DD5.1.H.264.mkv
Leverage.S01E12.720p.WEB-DL.DD5.1.H.264.mkv
Leverage.S01E13.720p.WEB-DL.DD5.1.H.264.mkv
Post Reply