My scripts was working perfectly until couple of days ago but now I realized that when rutorrent finish downloading, filebot is called but the problem is that he doesn't rename everything. For example he does rename anime, tv and "Movies" which are for me 1080p movies, but Movies 4K,REMUX and 3D and music not.
When I run script manually then he is working great.
Can someone check is there something wrong in my script ( I will give my log later if it is necessary now I am on my phone)
Code: Select all
#!/bin/sh
# Input Parameters
ARG_PATH="/home/luka289/rwatch"
# Configuration
CONFIG_OUTPUT="/home/luka289/upload"
filebot -script fn:amc --output "$CONFIG_OUTPUT" --action hardlink --conflict skip -non-strict --log-file amc.log --def unsorted=y music=y artwork=n ut_dir="$ARG_PATH" ut_kind="multi" ut_title="$ARG_NAME" ut_label="$ARG_LABEL" --def "seriesFormat=tv/{n}/{n} S{s.pad(2)}/{n} - {s00e00} - {t} [{''+source}{'-'+vf} {' '+vc}{'-'+ac+']'}" "movieFormat={fn =~ /2160p|4K|4k|UHD/ ? 'Movies_4K' : fn =~ /REMUX/ ? 'Movies_REMUX' : fn =~ /3D|3d|3dhsbs|H-SBS|3dhou|H-OU/ ? 'Movies_3D' : 'Movies'}/{n} [{y}]/{n} {fn.replace(/(?i)\.DC\./, '.directors.cut.').replaceAll(/director\'?s|theatrical|ultimate/,'$0.Cut').matchAll(/UNCENSORED|UNRATED|REMASTERED|EXTENDED|UNCUT|DC|DIRECTOR\'?S.CUT|THEATRICAL.CUT|ULTIMATE.CUT|FINAL.CUT|SPECIAL.EDITION/)*.upperInitial().sort().join(' ')} ({y}) [{source}-{vf} {vc} {ac}] {' CD'+pi}{'.'+lang}" "animeFormat=Anime/{(primaryTitle ?: n).replace(':',' -').replaceAll(/[?]/, '')}/{n} - {episode.special ? "S"+special.pad(2) : absolute.pad(3)} - {t.replace(':',' -').replaceAll(/[?]/, '')} [{''+source}{'-'+vf} {' '+vc}{'-'+ac+']'}" "musicFormat=Music/{albumartist}/{artist} - {t}" &
And in .rtorrent.rc I put
Code: Select all
method.set_key=event.download.finished,filebot,"execute={/home/luka289/rutorrent-postprocess.sh,$d.base_path=,$d.name=,$d.custom1=}"
Thanks in advance,
Luka