Randomly getting "Illegal usage: output folder must be separate from input folder"

Support for Ubuntu and other Desktop Linux distributions
Post Reply
tatar0900
Posts: 12
Joined: 10 Oct 2017, 11:17

Randomly getting "Illegal usage: output folder must be separate from input folder"

Post by tatar0900 »

Hello

@rednoah thank you very much for this awesome tool.

my .rtorrent.rc:

Code: Select all

method.set_key=event.download.finished,filebot,"execute={/home/tatar0900/scripts/rtorrent-postprocess.sh,$d.base_path=,$d.name=,$d.custom1=}
my rtorrent-postprocess.sh:

Code: Select all

#!/bin/sh

# rtorrent.rc
# method.set_key=event.download.finished,filebot,"execute={rtorrent-postprocess.sh,$d.base_path=,$d.name=,$d.custom1=}"

# Input Parameters
ARG_PATH="$1"
ARG_NAME="$2"
ARG_LABEL="$3"

# Configuration
CONFIG_OUTPUT="/home/tatar0900/torrents/rtorrent/complete"

filebot -script fn:amc --output "$CONFIG_OUTPUT" --action hardlink --conflict skip -non-strict --log-file amc.log --def unsorted=y artwork=y excludeList=".excludes" ut_dir="$ARG_PATH" ut_kind="multi" ut_title="$ARG_NAME" ut_label="$ARG_LABEL" --def "seriesFormat=tv/{n}/{'S'+s}/{fn}" "movieFormat=movies/{ny}/{fn}" &
As I said, sometimes it just works absolutely flawlessly (60-70% of the time). Sometimes I get this:

Code: Select all

Run script [fn:amc] at [Tue Oct 10 19:10:03 CEST 2017]
Parameter: unsorted = y
Parameter: artwork = y
Parameter: excludeList = .excludes
Parameter: ut_dir = /home/tatar0900/torrents/rtorrent
Parameter: ut_kind = multi
Parameter: ut_title = BlaBla.Theory.S11E03.1080p.HEVC.x265-MeGusta
Parameter: ut_label =
Parameter: seriesFormat = tv/{n}/{'S'+s}/{fn}
Parameter: movieFormat = movies/{ny}/{fn}
Illegal usage: output folder [/home/tatar0900/torrents/rtorrent/complete] must be separate from input folder [dir:/home/tatar0900/torrents/rtorrent, kind:multi, title:BlaBla.Theory.S11E03.1080p.HEVC.x265-MeGusta, label:null]
Failure (°_°)
Rtorrent runs @ /home/tatar0900/torrents/rtorrent, media files are /home/tatar0900/torrents/rtorrent/complete/movies and /home/tatar0900/torrents/rtorrent/complete/tv respectively - I'd prefer not changing the file structure but if you order me to do so there is no escape I guess :)
User avatar
rednoah
The Source
Posts: 22923
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Randomly getting "Illegal usage: output folder must be separate from input folder"

Post by rednoah »

Sorry, but the output folder must not be inside the input folder. This will avoid a range of common issues.

e.g.

Code: Select all

--output /home/tatar0900/complete
:idea: Please read the FAQ and How to Request Help.
tatar0900
Posts: 12
Joined: 10 Oct 2017, 11:17

Re: Randomly getting "Illegal usage: output folder must be separate from input folder"

Post by tatar0900 »

I got you master loud and clear. I will do the necessary change and will let you know if I experience anything further.

Cheers.
Post Reply