amc script fails to rename the episode but does unpack and copy

Running FileBot from the console, Groovy scripting, shell scripts, etc
Post Reply
alanbaker
Posts: 5
Joined: 30 Jul 2018, 14:08

amc script fails to rename the episode but does unpack and copy

Post by alanbaker »

My script is supposed to un rar, rename and move to the relevant folder, I'm only using it for TV shows at the moment.
This is my script

Code: Select all

"C:\Program Files\FileBot\filebot.launcher.exe" -script fn:amc --output "V:" --format "TV Shows/{n}/{'Season '+s.pad(1)}/{n}.{s00e00}.{t}" --log-file "V:\amc.log" --action copy --conflict fail -non-strict --def music=n --def plex=192.168.*.*:token --def clean=y subtitles=en artwork=n "ut_label=%L" "ut_state=%S" "ut_title=%N" "ut_kind=%K" "ut_file=%F" "ut_dir=%D"
The script fails to rename the episode but does unpack and copy it to the correct folder, any ideas?

The log file:-

Code: Select all

Run script [fn:amc] at [Mon Jul 30 15:02:30 BST 2018]
Parameter: music = n
Parameter: plex = *****
Parameter: clean = y
Parameter: subtitles = en
Parameter: artwork = n
Parameter: ut_label = 
Parameter: ut_state = 5
Parameter: ut_title = South.Park.S21E10.HDTV.x264-SVA[eztv].mkv
Parameter: ut_kind = single
Parameter: ut_file = South.Park.S21E10.HDTV.x264-SVA[eztv].mkv
Parameter: ut_dir = C:\Users\alan\Downloads
Input: C:\Users\alan\Downloads\South.Park.S21E10.HDTV.x264-SVA[eztv].mkv
Group: [tvs:south park] => [South.Park.S21E10.HDTV.x264-SVA[eztv].mkv]
Get [English] subtitles for 1 files
CmdlineException: OpenSubtitles: Please enter your login details by calling `filebot -script fn:configure`
Rename episodes using [TheTVDB]
Auto-detected query: [South Park]
Fetching episode data for [South Park]
Fetching episode data for [South Pacific]
[COPY] From [C:\Users\alan\Downloads\South.Park.S21E10.HDTV.x264-SVA[eztv].mkv] to [V:\TV Shows\South Park\Season 21\South Park - S21E10 - Splatty Tomato.mkv]
Processed 1 files
Notify Plex: [host:192.168.10.14, token:WtVPrZjr8Kym6hcj7cGH]
GET: http://192.168.*.*:32400/library/sections/all/refresh?X-Plex-Token=token
Done ヾ(@⌒ー⌒@)ノ
User avatar
rednoah
The Source
Posts: 22923
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Script not behaving as expected

Post by rednoah »

alanbaker wrote: 30 Jul 2018, 14:17 The script fails to rename the episode but does unpack and copy it to the correct folder, any ideas?
According to the log, files are successfully copied and renamed:

Code: Select all

[COPY] From [C:\Users\alan\Downloads\South.Park.S21E10.HDTV.x264-SVA[eztv].mkv] to [V:\TV Shows\South Park\Season 21\South Park - S21E10 - Splatty Tomato.mkv]
Processed 1 files
Is this destination path not what you expect?

Code: Select all

V:\TV Shows\South Park\Season 21\South Park - S21E10 - Splatty Tomato.mkv
:idea: Please read the FAQ and How to Request Help.
Post Reply